koel/.github/workflows/client-unit.yml

31 lines
712 B
YAML
Raw Normal View History

name: Frontend Unit Tests
2022-05-12 13:24:58 +00:00
on:
push:
branches:
- next
2022-05-12 13:24:58 +00:00
workflow_dispatch:
branches:
- next
2022-05-12 13:24:58 +00:00
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14, 16, 17 ] # 15 conflicts with @typescript-eslint/eslint-plugin@5
2022-05-12 13:24:58 +00:00
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
2022-05-12 13:24:58 +00:00
- name: Run unit tests
run: yarn test:unit
- name: Collect coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}