Merge pull request #230 from Sebastian-Webster/227-add-option-to-turn… #269
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: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [18.x, 19.x, 20.x, 21.x, 22.x, 23.x, 24.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: Upload mysqlmsn directory | |
| if: ${{ failure() }} | |
| uses: actions/[email protected] | |
| with: | |
| name: node-${{ matrix.node-version }} | |
| path: /tmp/mysqlmsn | |
| compression-level: 9 |