koel/resources/assets/.github/workflows/main.yml
2022-04-15 16:24:30 +02:00

23 lines
680 B
YAML

name: main
on: [ push, workflow_dispatch ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 10, 11, 12, 13, 14, 15 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Run static type checking
run: yarn type-check
- name: Run unit tests
run: yarn test --forceExit # Jest won't exit in Node 15 for whatever reason
- name: Collect coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}