mirror of
https://github.com/koel/koel
synced 2024-11-28 23:10:27 +00:00
30 lines
712 B
YAML
30 lines
712 B
YAML
name: Frontend Unit Tests
|
|
on:
|
|
push:
|
|
branches:
|
|
- next
|
|
workflow_dispatch:
|
|
branches:
|
|
- next
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [ 14, 16, 17 ] # 15 conflicts with @typescript-eslint/eslint-plugin@5
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
- name: Lint
|
|
run: yarn lint
|
|
- name: Run unit tests
|
|
run: yarn test:unit
|
|
- name: Collect coverage
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|