Skip to content

Commit ba9de19

Browse files
committed
ci: add format-check job
Adds a `format-check` job that runs `pnpm format:check` (oxfmt) on every PR and gates the publish step on it the same way as lint.
1 parent 96331f7 commit ba9de19

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/test_and_release.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,24 @@ jobs:
6363
uses: apify/workflows/pnpm-install@main
6464
- run: pnpm lint
6565

66+
format-check:
67+
name: Format check
68+
runs-on: ubuntu-latest
69+
70+
steps:
71+
- uses: actions/checkout@v6
72+
- name: Use Node.js 24
73+
uses: actions/setup-node@v6
74+
with:
75+
node-version: 24
76+
- name: Install pnpm and dependencies
77+
uses: apify/workflows/pnpm-install@main
78+
- run: pnpm format:check
79+
6680
publish:
6781
name: Publish to NPM
6882
if: github.ref == 'refs/heads/master'
69-
needs: [ test, build, lint ]
83+
needs: [ test, build, lint, format-check ]
7084
runs-on: ubuntu-latest
7185
steps:
7286
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)