Skip to content

Commit b479e2e

Browse files
committed
ci: add autofix.ci
1 parent 12d5a31 commit b479e2e

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
14+
15+
jobs:
16+
autofix:
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 15
19+
steps:
20+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
21+
22+
- name: ⎔ Setup pnpm
23+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
24+
25+
- name: ⎔ Setup Node.js
26+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
27+
with:
28+
node-version: 24
29+
cache: pnpm
30+
31+
- name: 📥 Install dependencies
32+
run: pnpm install --ignore-scripts --frozen-lockfile
33+
34+
# Apply Biome's formatting/lint fixes. Unfixable lint errors are CI's job
35+
# to report (see test.yml); don't let them block uploading the fixes.
36+
- name: 🧹 Apply fixes
37+
run: pnpm run lint || true
38+
39+
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4

0 commit comments

Comments
 (0)