Skip to content

Commit 8e15f3a

Browse files
committed
Update GitHub Actions CI
1 parent 9c35b92 commit 8e15f3a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [ ubuntu-latest, windows-latest, macOS-latest ]
21+
# https://github.com/actions/runner-images#available-images
22+
# macos-latest-large is x64
23+
# macos-latest is arm64
24+
os: [ ubuntu-latest, windows-latest ]
2225
node-version: [ 8.x, 10.x, 12.x, 13.x, 14.x, 16.x, 18.x, 20.x ]
2326
exclude:
2427
# exclude Node.js 8.x on ubuntu-latest
@@ -40,6 +43,12 @@ jobs:
4043
node-version: 13.x
4144
- os: windows-latest
4245
node-version: 14.x
46+
include:
47+
# macos-latest is arm64 which supports only the latest Node.js versions
48+
- os: macos-latest
49+
node-version: 18.x
50+
- os: macos-latest
51+
node-version: 20.x
4352

4453
steps:
4554

@@ -68,5 +77,5 @@ jobs:
6877
- name: Run tests
6978
run: npm test
7079
# TODO: enable once tests do not get stuck on Windows
71-
# Mocha and Sinon.JS support only Node.js >=14.x
72-
if: matrix.os != 'windows-latest' && contains(fromJSON('["14.x", "16.x", "18.x", "20.x"]'), matrix.node-version)
80+
# AVA supports only officially supported Node.js versions
81+
if: matrix.os != 'windows-latest' && contains(fromJSON('["18.x", "20.x"]'), matrix.node-version)

0 commit comments

Comments
 (0)