Skip to content

Commit 211676e

Browse files
committed
chore: update CI workflows and add autofix capabilities
1 parent c240056 commit 211676e

4 files changed

Lines changed: 40 additions & 3 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: autofix.ci
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
autofix:
15+
name: autofix
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5.0.0
20+
with:
21+
fetch-depth: 0
22+
- name: Setup Tools
23+
uses: ./.github/actions/install
24+
- name: Fix lint issues
25+
run: pnpm lint:fix
26+
- name: Fix formatting
27+
run: pnpm format
28+
- name: Apply fixes
29+
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
30+
with:
31+
commit-message: "ci: apply automated fixes"

.github/workflows/static_checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Check out code
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222

2323
- name: Install tools & dependencies
2424
uses: ./.github/actions/install
@@ -33,10 +33,13 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Check out code
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3737

3838
- name: Install tools & dependencies
3939
uses: ./.github/actions/install
4040

4141
- name: Lint code
4242
run: pnpm check:lint
43+
44+
- name: Check formatting
45+
run: pnpm exec prettier . --check

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.solid
22
dist
33
*.min.*
4-
package-lock.json
4+
package-lock.json
5+
.github/ISSUE_TEMPLATE/OTHER.yml

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"build:sitemap": "node scripts/generateSitemap.js",
1414
"start": "vinxi start",
1515
"e2e": "npx playwright test",
16+
"format": "prettier . --write",
17+
"lint:fix": "eslint --flag unstable_native_nodejs_ts_config . --fix",
1618
"check:lint": "eslint --flag unstable_native_nodejs_ts_config .",
1719
"check:types": "tsc --noEmit"
1820
},

0 commit comments

Comments
 (0)