Skip to content

Commit 522e6e6

Browse files
committed
ci: add autofix.ci
1 parent 7481621 commit 522e6e6

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
21+
22+
- name: ⎔ Setup pnpm
23+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
24+
25+
- name: ⎔ Setup Node.js
26+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
27+
with:
28+
node-version: 24
29+
cache: pnpm
30+
31+
- name: 📥 Install dependencies
32+
run: pnpm install --ignore-scripts --frozen-lockfile
33+
34+
# Applies oxlint --fix. Unfixable lint errors are CI's job to report
35+
# (see the lint step in test.yml); don't let them block uploading the
36+
# fixes that did apply.
37+
- name: 🧹 Apply lint fixes
38+
run: pnpm run lint || true
39+
40+
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4

0 commit comments

Comments
 (0)