koel/.github/workflows/unit-frontend.yml
2022-07-27 20:08:57 +02:00

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 }}