1+ name : alpha
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - develop
8+ - ' 4.x'
9+ - ' 5.x'
10+ - ' 5.0'
11+ paths-ignore :
12+ - ' *.md'
13+ pull_request :
14+ paths-ignore :
15+ - ' *.md'
16+ workflow_dispatch :
17+
18+ permissions :
19+ contents : read
20+
21+ # Cancel in progress workflows
22+ # in the scenario where we already had a run going for that PR/branch/tag but then triggered a new run
23+ concurrency :
24+ group : " ${{ github.workflow }} ✨ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
25+ cancel-in-progress : true
26+
27+ jobs :
28+ test :
29+ strategy :
30+ fail-fast : false
31+ matrix :
32+ os : [ubuntu-latest, windows-latest]
33+ # Node.js 27 is in Alpha (Oct 2026 - Mar 2027), with 27.0.0 planned for April 2027.
34+ # Workaround for actions/setup-node#1657: `27`, `27.0.0` and `27.0.0-alpha`
35+ # are not recognized yet, but `latest` currently resolves to the newest Alpha.
36+ # Once setup-node adds `allow-prereleases: true`, switch to `node-version: 27`.
37+ node-version : [latest]
38+
39+ name : Node.js ${{ matrix.node-version }} - ${{ matrix.os }}
40+
41+ runs-on : ${{ matrix.os }}
42+
43+ continue-on-error : true
44+
45+ steps :
46+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
47+ with :
48+ persist-credentials : false
49+
50+ - name : Setup Node.js ${{ matrix.node-version }}
51+ uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
52+ with :
53+ node-version : ${{ matrix.node-version }}
54+
55+ - name : Configure npm loglevel
56+ run : |
57+ npm config set loglevel error
58+ shell : bash
59+
60+ - name : Install dependencies
61+ run : npm install
62+
63+ - name : Output Node and NPM versions
64+ run : |
65+ echo "Node.js version: $(node -v)"
66+ echo "NPM version: $(npm -v)"
67+
68+ - name : Run tests
69+ shell : bash
70+ run : npm run test-ci
0 commit comments