Files
flood/.github/workflows/test-backend.yml
2020-10-18 22:32:34 +08:00

34 lines
612 B
YAML

name: Test backend
on:
push:
branches-ignore:
- 'integration/**'
pull_request:
jobs:
test-backend:
runs-on: ubuntu-20.04
strategy:
matrix:
node: [12, 14]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: sudo apt-get install -y rtorrent
- run: npm ci --no-optional
- run: npm run build
- run: npm run start -- --help
- run: npm test
- uses: codecov/codecov-action@v1