2022-05-16 16:55:54 +00:00
|
|
|
name: Frontend Unit Tests
|
2022-05-12 13:24:58 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-05-16 16:55:54 +00:00
|
|
|
- next
|
2022-05-12 13:24:58 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
branches:
|
2022-05-16 16:55:54 +00:00
|
|
|
- next
|
2022-05-12 13:24:58 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-05-12 17:03:06 +00:00
|
|
|
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
|
2022-05-16 16:55:54 +00:00
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
2022-05-12 13:24:58 +00:00
|
|
|
- name: Run unit tests
|
|
|
|
run: yarn test:unit
|
2022-05-15 15:09:20 +00:00
|
|
|
- name: Collect coverage
|
|
|
|
uses: codecov/codecov-action@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|