45 lines
950 B
YAML
45 lines
950 B
YAML
name: Node.js CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
- mei23-ci
|
|
pull_request:
|
|
|
|
jobs:
|
|
build_and_test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [11.10.x, 12.x]
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:10.8
|
|
ports:
|
|
- 5432:5432
|
|
env:
|
|
POSTGRES_DB: test-misskey
|
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
|
redis:
|
|
image: redis:alpine
|
|
ports:
|
|
- 6379:6379
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
- name: Copy Configure
|
|
run: cp .circleci/misskey/*.yml .config
|
|
- name: Build
|
|
run: yarn build
|
|
- name: Test
|
|
run: yarn test
|