Skip to content

Commit

Permalink
Update GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pokusew committed Dec 23, 2024
1 parent 9c35b92 commit 8e15f3a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
# https://github.com/actions/runner-images#available-images
# macos-latest-large is x64
# macos-latest is arm64
os: [ ubuntu-latest, windows-latest ]
node-version: [ 8.x, 10.x, 12.x, 13.x, 14.x, 16.x, 18.x, 20.x ]
exclude:
# exclude Node.js 8.x on ubuntu-latest
Expand All @@ -40,6 +43,12 @@ jobs:
node-version: 13.x
- os: windows-latest
node-version: 14.x
include:
# macos-latest is arm64 which supports only the latest Node.js versions
- os: macos-latest
node-version: 18.x
- os: macos-latest
node-version: 20.x

steps:

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

0 comments on commit 8e15f3a

Please sign in to comment.