2023-01-19 19:28:52 +01:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-03-27 17:19:26 +02:00
|
|
|
push:
|
2023-01-19 19:28:52 +01:00
|
|
|
branches:
|
|
|
|
- main
|
2023-03-27 17:19:26 +02:00
|
|
|
concurrency:
|
|
|
|
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
|
|
|
|
cancel-in-progress: true
|
2023-01-19 19:28:52 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linting:
|
|
|
|
name: Run linters
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2023-02-22 21:23:57 +01:00
|
|
|
uses: actions/checkout@v3
|
2023-01-19 19:28:52 +01:00
|
|
|
- name: Yarn install
|
2023-09-06 18:26:19 +02:00
|
|
|
run: yarn --frozen-lockfile
|
2023-06-02 22:01:04 +02:00
|
|
|
- name: Lint check
|
2023-01-19 19:28:52 +01:00
|
|
|
run: yarn lint
|
2023-06-02 22:01:04 +02:00
|
|
|
- name: Type check
|
|
|
|
run: yarn typecheck
|
2023-01-19 19:28:52 +01:00
|
|
|
testing:
|
|
|
|
name: Run tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-24 20:00:11 +01:00
|
|
|
- name: Install node 18
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
2023-01-19 19:28:52 +01:00
|
|
|
- name: Check out Git repository
|
2023-02-22 21:23:57 +01:00
|
|
|
uses: actions/checkout@v3
|
2023-01-19 19:28:52 +01:00
|
|
|
- name: Yarn install
|
2023-09-06 18:26:19 +02:00
|
|
|
run: yarn --frozen-lockfile
|
2023-01-19 19:28:52 +01:00
|
|
|
- name: Run tests
|
2023-01-24 18:03:18 +01:00
|
|
|
run: |
|
2023-01-19 19:28:52 +01:00
|
|
|
yarn test --forceExit
|