Skip to content

Release v5

Release v5 #701

Workflow file for this run

name: build
on:
push:
branches:
- master
- release
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18.20.3", "20.13.1", "22.2.0"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test unit
run: npm run test:unit
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.node }}
path: coverage
retention-days: 1
test-windows:
runs-on: windows-2022
strategy:
matrix:
node: ["18.20.3", "20.13.1", "22.2.0"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Install dependencies
run: npm ci --ignore-scripts
env:
HUSKY_SKIP_INSTALL: 1
- name: Test unit
run: npm run test:unit
quality:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download test results
uses: actions/download-artifact@v4
with:
name: coverage-18.20.3
path: coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
if: env.SONAR_TOKEN != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}