Skip to content

Commit d34c139

Browse files
authored
ci: add autofix.ci (#644)
1 parent 9d1c093 commit d34c139

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: autofix.ci
2+
on:
3+
pull_request:
4+
push:
5+
branches: ["main"]
6+
permissions:
7+
contents: read
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
autofix:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v7
18+
- name: Set up Bun
19+
uses: oven-sh/setup-bun@v2
20+
with:
21+
bun-version-file: ".bun-version"
22+
23+
- name: Install dependencies
24+
run: bun install
25+
26+
- name: Format code
27+
run: |
28+
bun run format:eslint || true
29+
bun run format:prettier
30+
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a

.github/workflows/check-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Bun
2525
uses: oven-sh/setup-bun@v2
2626
with:
27-
bun-version: 1.2.2
27+
bun-version-file: ".bun-version"
2828

2929
- name: Install dependencies
3030
run: bun install

.github/workflows/run-bun-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Bun
2525
uses: oven-sh/setup-bun@v2
2626
with:
27-
bun-version: 1.2.2
27+
bun-version-file: ".bun-version"
2828

2929
- name: Install dependencies
3030
run: bun install

0 commit comments

Comments
 (0)