Skip to content

feat: STRF-13629 Support node 22 #153

feat: STRF-13629 Support node 22

feat: STRF-13629 Support node 22 #153

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: Install Visual Studio Build Tools
if: startsWith(matrix.os, 'windows')
uses: microsoft/setup-msbuild@v1.1
- name: Install Windows Build Tools
if: startsWith(matrix.os, 'windows')
run: |
npm install -g node-gyp
npm config set msvs_version 2019
npm config set python python
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