Skip to content

vscode: update jest plugin settings #513

vscode: update jest plugin settings

vscode: update jest plugin settings #513

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:
- 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 & Unit Test
run: concurrently --prefix none --group "pnpm:build" "pnpm:test"
- name: Smoke Test
# Don't collect coverage here as it overrides the unit test's coverage
run: pnpm test:smoke --coverage=false
- 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