Skip to content

Commit f7aead4

Browse files
committed
Split CI into separate jobs for format and test
This way the tests will still run if the formatting fails.
1 parent 01909a9 commit f7aead4

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Check format and run tests
33
on: [push, pull_request]
44

55
jobs:
6-
format_and_test:
7-
name: Check format and run tests
6+
format:
7+
name: Check format
88

99
runs-on: ubuntu-latest
1010

1111
strategy:
1212
matrix:
13-
node-version: [18.x, 20.x, 22.x]
13+
node-version: [22.x]
1414

1515
steps:
1616
- uses: actions/checkout@v4
@@ -25,11 +25,22 @@ jobs:
2525
npx prettier --check "**/*.ts"
2626
npx eslint "**/*.ts"
2727
28-
- name: Build utils
29-
working-directory: ./utils
30-
run: |
31-
npm install
32-
npm run build
28+
test:
29+
name: Run tests
30+
31+
runs-on: ubuntu-latest
32+
33+
strategy:
34+
matrix:
35+
node-version: [18.x, 20.x, 22.x]
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Use Node.js ${{ matrix.node-version }}
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: ${{ matrix.node-version }}
3344

3445
- name: Build functions
3546
working-directory: ./functions

0 commit comments

Comments
 (0)