mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2024-11-23 03:49:41 +00:00
Add prettier check to CI
This commit is contained in:
parent
eb9aa34323
commit
544c39168b
26
.github/workflows/frontend-checks.yml
vendored
26
.github/workflows/frontend-checks.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user