Skip to content

Commit e21a456

Browse files
committed
chore: update ci
1 parent 29e54be commit e21a456

4 files changed

Lines changed: 25 additions & 50 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
1-
name: autofix.ci # needed to securely identify the workflow
2-
3-
on:
4-
pull_request:
5-
push:
6-
branches: ["main"]
7-
8-
permissions:
9-
contents: read
10-
1+
name: autofix.ci
2+
on: { push: {}, pull_request: {} }
3+
permissions: { contents: read }
114
jobs:
125
autofix:
136
runs-on: ubuntu-latest
147
steps:
15-
- uses: actions/checkout@v5
8+
- uses: actions/checkout@v6
169
- run: npm i -fg corepack && corepack enable
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 22
20-
cache: "pnpm"
10+
- uses: actions/setup-node@v6
11+
with: { node-version: lts/*, cache: "pnpm" }
2112
- run: pnpm install
22-
- run: pnpm lint:fix
13+
- run: pnpm fmt
2314
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
24-
with:
25-
commit-message: "chore: apply automated updates"
15+
with: { commit-message: "chore: apply automated updates" }

.github/workflows/checks.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: checks
2+
on: { push: {}, pull_request: {} }
3+
jobs:
4+
checks:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v6
8+
- run: npm i -fg corepack && corepack enable
9+
- uses: actions/setup-node@v6
10+
with: { node-version: lts/*, cache: "pnpm" }
11+
- run: pnpm install
12+
- run: pnpm typecheck
13+
- run: pnpm vitest --coverage
14+
- run: pnpm run lint
15+
# - uses: codecov/codecov-action@v5
16+
# with: { token: "${{ secrets.CODECOV_TOKEN }}" }

.github/workflows/ci.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build": "obuild",
1818
"dev": "vitest --typecheck",
1919
"lint": "oxlint && oxfmt -c",
20-
"lint:fix": "automd && oxlint --fix . && oxfmt",
20+
"fmt": "automd && oxlint --fix . && oxfmt",
2121
"prepack": "pnpm build",
2222
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
2323
"test": "vitest run --typecheck --coverage"

0 commit comments

Comments
 (0)