feat: STRF-13629 Support node 22 #160
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: Tests | |
| on: | |
| pull_request: | |
| branches: [master, main] | |
| push: | |
| branches: [master, main] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| node: [22.x] | |
| os: ['ubuntu-latest', 'windows-latest'] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| GYP_MSVS_VERSION: 2019 | |
| _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING: 1 | |
| _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS: 1 | |
| CXXFLAGS: "/std:c++14 /permissive-" | |
| CFLAGS: "/std:c14" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| # - name: Set up Python | |
| # if: startsWith(matrix.os, 'windows') | |
| # id: py | |
| # uses: actions/setup-python@v5 | |
| # with: | |
| # python-version: '3.10' | |
| - name: Configure node-gyp for Windows | |
| if: startsWith(matrix.os, 'windows') | |
| run: | | |
| npm config set target_arch x64 | |
| npm config set target_platform win32 | |
| shell: bash | |
| - name: Install Dependencies | |
| run: npm ci | |
| shell: bash | |
| - name: Lint the code | |
| run: npm run lint | |
| shell: bash | |
| - name: Run tests | |
| run: npm run test | |
| shell: bash |