-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (32 loc) · 879 Bytes
/
ci-nodejs.yml
File metadata and controls
35 lines (32 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Node.js CI
on:
pull_request:
branches: [main]
types: [opened, synchronize]
permissions:
contents: read
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20.19.0, latest]
os: [
ubuntu-latest, # x64
ubuntu-24.04-arm, # arm64
macos-15-intel, # x64
macos-15, # arm64
]
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test