Lint and format
This commit is contained in:
@@ -8,7 +8,56 @@ permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
lint-and-format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies for frontend
|
||||
working-directory: ./frontend
|
||||
run: npm ci
|
||||
|
||||
- name: Lint frontend
|
||||
working-directory: ./frontend
|
||||
run: npm run lint
|
||||
|
||||
- name: Check formatting for frontend
|
||||
working-directory: ./frontend
|
||||
run: npm run format:check
|
||||
|
||||
- name: Install dependencies for match_collector
|
||||
working-directory: ./match_collector
|
||||
run: npm ci
|
||||
|
||||
- name: Lint match_collector
|
||||
working-directory: ./match_collector
|
||||
run: npm run lint
|
||||
|
||||
- name: Check formatting for match_collector
|
||||
working-directory: ./match_collector
|
||||
run: npm run format:check
|
||||
|
||||
- name: Install dependencies for patch_detector
|
||||
working-directory: ./patch_detector
|
||||
run: npm ci
|
||||
|
||||
- name: Lint patch_detector
|
||||
working-directory: ./patch_detector
|
||||
run: npm run lint
|
||||
|
||||
- name: Check formatting for patch_detector
|
||||
working-directory: ./patch_detector
|
||||
run: npm run format:check
|
||||
|
||||
build-and-push-images:
|
||||
needs: lint-and-format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
Reference in New Issue
Block a user