Cultivation/.github/workflows/frontend-checks.yml

33 lines
610 B
YAML
Raw Permalink Normal View History

2022-07-11 14:18:09 +08:00
name: Check frontend
on:
push:
2022-07-19 18:31:43 +08:00
paths-ignore:
- '**.lock'
- '**.rs'
- '**.toml'
2022-07-11 14:18:09 +08:00
pull_request:
2022-07-19 18:31:43 +08:00
paths-ignore:
- '**.lock'
- '**.rs'
- '**.toml'
2022-07-11 14:18:09 +08:00
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
2022-07-19 18:31:43 +08:00
prettier-tsc-eslint-checks:
2022-07-11 14:18:09 +08:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install modules
run: yarn
2022-07-19 18:31:43 +08:00
- name: Run prettier
run: yarn prettier --check .
2022-07-11 14:18:09 +08:00
- name: Run tsc
run: yarn tsc --noEmit
- name: Run ESLint
run: yarn eslint src