mirror of
https://github.com/koel/koel
synced 2025-01-23 09:45:07 +00:00
24 lines
680 B
YAML
24 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 }}
|