Skip to content

chore(release): 5.0.0-rc.2 #121

chore(release): 5.0.0-rc.2

chore(release): 5.0.0-rc.2 #121

Workflow file for this run

# This workflow will do a clean install of node dependencies and run tests across different versions of node on different environments
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: ci
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
lint:
name: Lint & Format - ${{ matrix.platform }} - Node v${{ matrix.node-version }}
strategy:
matrix:
node-version: ["20.19", "22.13", "24"]
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Check Node version
run: node --version && npm --version
- name: Clear npm cache
run: npm cache clean --force
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Run lint
run: npm run lint
- name: Check formatting
run: npm run format:check
test:
name: Test - ${{ matrix.platform }} - Node v${{ matrix.node-version }}
strategy:
matrix:
node-version: ["20.19", "22.13", "24"]
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Check Node version
run: node --version && npm --version
- name: Clear npm cache
run: npm cache clean --force
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Run tests
run: npm test