feat: STRF-13629 Support node 22 #154
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 }} | |
| 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 npm for Windows | |
| if: startsWith(matrix.os, 'windows') | |
| run: | | |
| npm config set msvs_version 2019 | |
| npm config set python python | |
| npm config set cache-min 86400 | |
| 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 |