Skip to content

Commit c4c1420

Browse files
authored
Merge pull request #27 from 343dev/imporvement/ci-node-workflow
Update `ci-node` workflow
2 parents fd0fbe2 + 12ce4de commit c4c1420

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/ci-nodejs.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,25 @@ on:
77
branches: [main]
88

99
jobs:
10-
run_tests:
11-
runs-on: ubuntu-latest
10+
tests:
11+
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
node-version: [18.18.0, 20.18.0, latest]
14+
node-version: [18.18.0, latest]
15+
os: [
16+
ubuntu-latest, # x64
17+
ubuntu-24.04-arm, # arm64
18+
macos-13, # x64
19+
macos-latest, # arm64
20+
]
1521
steps:
16-
-
17-
name: Checkout repository
22+
- name: Checkout repository
1823
uses: actions/checkout@v4
19-
-
20-
name: Use Node.js ${{ matrix.node-version }}
24+
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
2125
uses: actions/setup-node@v4
2226
with:
2327
node-version: ${{ matrix.node-version }}
24-
-
25-
name: Install dependencies
28+
- name: Install dependencies
2629
run: npm ci
27-
-
28-
name: Run tests
30+
- name: Run tests
2931
run: npm test

0 commit comments

Comments
 (0)