-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (40 loc) · 1.08 KB
/
node.js.yml
File metadata and controls
44 lines (40 loc) · 1.08 KB
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
36
37
38
39
40
41
42
43
44
---
# This workflow will do a clean install of node dependencies, cache/restore
# them, build the source code and run tests across different versions of node
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
merge_group:
jobs:
build:
strategy:
fail-fast: false
matrix:
node-version: [22.x, 24.x]
os:
[
ubuntu-22.04,
ubuntu-22.04-arm,
ubuntu-24.04,
ubuntu-24.04-arm,
windows-2022,
windows-2025,
]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6.3.0
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install
- run: npm ci
- run: npm run pretest
- run: npm run test