mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
Add prettier check to CI
This commit is contained in:
26
.github/workflows/frontend-checks.yml
vendored
26
.github/workflows/frontend-checks.yml
vendored
@@ -2,34 +2,30 @@ name: Check frontend
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths-ignore:
|
||||||
- '.github/workflows/frontend-checks.yml'
|
- '**.lock'
|
||||||
- 'src/**'
|
- '**.rs'
|
||||||
- '.eslintrc.json'
|
- '**.toml'
|
||||||
- 'package.json'
|
|
||||||
- 'tsconfig.json'
|
|
||||||
- 'yarn.lock'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths-ignore:
|
||||||
- '.github/workflows/frontend-checks.yml'
|
- '**.lock'
|
||||||
- 'src/**'
|
- '**.rs'
|
||||||
- '.eslintrc.json'
|
- '**.toml'
|
||||||
- 'package.json'
|
|
||||||
- 'tsconfig.json'
|
|
||||||
- 'yarn.lock'
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.ref }}-${{ github.workflow }}
|
group: ${{ github.ref }}-${{ github.workflow }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tsc-eslint-checks:
|
prettier-tsc-eslint-checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install modules
|
- name: Install modules
|
||||||
run: yarn
|
run: yarn
|
||||||
|
- name: Run prettier
|
||||||
|
run: yarn prettier --check .
|
||||||
- name: Run tsc
|
- name: Run tsc
|
||||||
run: yarn tsc --noEmit
|
run: yarn tsc --noEmit
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
|
|||||||
Reference in New Issue
Block a user