Add prettier check to CI

This commit is contained in:
Brian Bowman 2022-07-19 05:31:43 -05:00
parent eb9aa34323
commit 544c39168b

View File

@ -2,34 +2,30 @@ name: Check frontend
on:
push:
paths:
- '.github/workflows/frontend-checks.yml'
- 'src/**'
- '.eslintrc.json'
- 'package.json'
- 'tsconfig.json'
- 'yarn.lock'
paths-ignore:
- '**.lock'
- '**.rs'
- '**.toml'
pull_request:
paths:
- '.github/workflows/frontend-checks.yml'
- 'src/**'
- '.eslintrc.json'
- 'package.json'
- 'tsconfig.json'
- 'yarn.lock'
paths-ignore:
- '**.lock'
- '**.rs'
- '**.toml'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
tsc-eslint-checks:
prettier-tsc-eslint-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install modules
run: yarn
- name: Run prettier
run: yarn prettier --check .
- name: Run tsc
run: yarn tsc --noEmit
- name: Run ESLint