Fix failures on Windows with Node 23.x #335
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js Compatibility | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
node: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-14, macos-15, macos-15-intel, macos-26, ubuntu-22.04, ubuntu-24.04, windows-2022, windows-2025, ubuntu-22.04-arm, ubuntu-24.04-arm, windows-11-arm] | |
node-version: [18.x, 19.x, 20.x, 21.x, 22.x, 23.x, 24.x, 25.x] | |
# Exclude Node 18.x on Windows on Arm because Node only provides Windows on Arm binaries for Node >= 19 | |
exclude: | |
- os: windows-11-arm | |
node-version: 18.x | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
check-latest: true | |
- name: Install packages | |
run: npm ci | |
- name: Run tests | |
run: npm run test:ci | |
- name: Move MySQLMSN directory for GitHub Actions upload | |
if: ${{ failure() }} | |
env: | |
MOVE_MYSQLMSN_TO: ${{ runner.os == 'Windows' && 'C:\\Users\\RUNNER~1\\mysqlmsn' || '/tmp/mysqlmsn' }} | |
run: npx ts-node tests/ci/DirMoveGitHubActions.ts | |
- name: Upload mysqlmsn directory | |
if: ${{ failure() }} | |
uses: actions/[email protected] | |
with: | |
name: node-${{ matrix.node-version }} | |
path: ${{ runner.os == 'Windows' && 'C:\\Users\\RUNNER~1\\mysqlmsn' || '/tmp/mysqlmsn' }} | |
compression-level: 9 |