mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 15:14:35 +01:00
37 lines
733 B
YAML
37 lines
733 B
YAML
name: Check frontend
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/frontend-checks.yml'
|
|
- 'src/**'
|
|
- '.eslintrc.json'
|
|
- 'package.json'
|
|
- 'tsconfig.json'
|
|
- 'yarn.lock'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/frontend-checks.yml'
|
|
- 'src/**'
|
|
- '.eslintrc.json'
|
|
- 'package.json'
|
|
- 'tsconfig.json'
|
|
- 'yarn.lock'
|
|
|
|
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
|