Skip to content

Commit a322fe9

Browse files
committed
fix(build): add lint job and ensure it runs before prebuild jobs
1 parent 9953cce commit a322fe9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,20 @@ on:
2020
run-name: ${{ github.event_name == 'workflow_dispatch' && format('Release - {0}', github.event.inputs.version) || format('Build - {0}', github.event.head_commit.message || github.event.pull_request.title) }}
2121

2222
jobs:
23+
lint:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 24
30+
cache: "npm"
31+
- run: npm ci
32+
- name: Run linters
33+
run: npm run lint
34+
2335
prebuild-mac-win:
36+
needs: [lint]
2437
strategy:
2538
fail-fast: false
2639
matrix:
@@ -33,14 +46,14 @@ jobs:
3346
node-version: 20
3447
cache: "npm"
3548
- run: npm ci
36-
- run: npm run lint
3749
- run: npm run prebuild
3850
- uses: actions/upload-artifact@v4
3951
with:
4052
name: prebuilds-${{ matrix.os }}
4153
path: prebuilds/
4254

4355
prebuild-ubuntu:
56+
needs: [lint]
4457
strategy:
4558
fail-fast: false
4659
matrix:
@@ -65,6 +78,7 @@ jobs:
6578
path: prebuilds/
6679

6780
prebuild-alpine:
81+
needs: [lint]
6882
strategy:
6983
fail-fast: false
7084
matrix:

0 commit comments

Comments
 (0)