Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .github/workflows/pull_request_frontend.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: Frontend Pull Request
name: autofix.ci

on:
pull_request:
branches: [ master, main ]
paths:
- 'frontend/**'
- "frontend/**"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
RUSTFLAGS: "-Dwarnings"

defaults:
run:
working-directory: ./frontend
Expand All @@ -24,9 +21,27 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
node-version: "20"
cache-dependency-path: "frontend"
- run: |
yarn
yarn prettier . --write
npm ci
npx prettier --write .
- uses: autofix-ci/action@v1
with:
commit-message: "Apply Prettier format"

lint:
runs-on: ubuntu-latest
needs: autofix-prettier
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
node-version: "20"
cache-dependency-path: "frontend"
- run: |
npm ci
npx eslint . --max-warnings 0