2022-07-11 14:18:09 +08:00
|
|
|
name: Check frontend
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2022-07-19 17:37:38 +08:00
|
|
|
- '.github/workflows/frontend-checks.yml'
|
|
|
|
- 'src/**'
|
|
|
|
- '.eslintrc.json'
|
|
|
|
- 'package.json'
|
|
|
|
- 'tsconfig.json'
|
|
|
|
- 'yarn.lock'
|
2022-07-11 14:18:09 +08:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2022-07-19 17:37:38 +08:00
|
|
|
- '.github/workflows/frontend-checks.yml'
|
|
|
|
- 'src/**'
|
|
|
|
- '.eslintrc.json'
|
|
|
|
- 'package.json'
|
|
|
|
- 'tsconfig.json'
|
|
|
|
- 'yarn.lock'
|
2022-07-11 14:18:09 +08:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.ref }}-${{ github.workflow }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tsc-eslint-checks:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install modules
|
|
|
|
run: yarn
|
|
|
|
- name: Run tsc
|
|
|
|
run: yarn tsc --noEmit
|
|
|
|
- name: Run ESLint
|
|
|
|
run: yarn eslint src
|