Skip to content

Test against Node.js v20 instead of v19 #410

Test against Node.js v20 instead of v19

Test against Node.js v20 instead of v19 #410

Workflow file for this run

name: Test
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.ya?ml'
- '!pnpm-lock.yaml'
- '!.github/workflows/test.yml'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '**.ya?ml'
- '!pnpm-lock.yaml'
- '!.github/workflows/test.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Node.js ${{ matrix.node }} on ${{ matrix.os.name }}
runs-on: ${{ matrix.os.version }}
strategy:
fail-fast: false
matrix:
node:
- 14
- 16
- 18
- 20
os:
- name: Ubuntu
version: ubuntu-latest
- name: Windows
version: windows-latest
- name: macOS
version: macOS-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
- name: Install dependencies
run: pnpm install && pnpm add --global concurrently
- name: Build & Test
run: concurrently --prefix none --group "pnpm:build" "pnpm:test"
- name: Submit coverage
uses: coverallsapp/github-action@master
continue-on-error: true
with:
github-token: ${{ secrets.github_token }}
flag-name: Node.js ${{ matrix.node }} on ${{ matrix.os.name }}
parallel: true
coverage:
name: Coverage
needs: test
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Finish coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true