Skip to content

chore(main): release 12.0.0-rc.6 #6282

chore(main): release 12.0.0-rc.6

chore(main): release 12.0.0-rc.6 #6282

Workflow file for this run

name: Tests
on:
push:
branches:
- main
paths-ignore:
["*.md", "docs/**", ".github/**", ".prettierignore", "AUTHORS", "LICENSE"]
pull_request:
branches:
- main
paths-ignore:
["*.md", "docs/**", ".github/**", ".prettierignore", "AUTHORS", "LICENSE"]
types: [opened, synchronize, reopened, edited]
workflow_dispatch:
permissions:
contents: read
id-token: write # for Codecov OIDC
jobs:
lint:
uses: ./.github/workflows/npm-script.yml
with:
npm-script: lint
smoke:
uses: ./.github/workflows/npm-script.yml
with:
node-versions: "20,22,24"
npm-script: test-smoke
test-node-lts:
# TODO: Restore "mocha-github-actions-reporter" style reporting without relying on third party module
# https://github.com/mochajs/mocha/issues/5183
uses: ./.github/workflows/npm-script.yml
needs: smoke
strategy:
fail-fast: false
matrix:
test-part:
- interfaces
- unit
- integration
- jsapi
- requires
- reporters
- only
with:
npm-script: test-node:${{ matrix.test-part }}
test-node-all:
name: Test ${{ matrix.test-part }} in all environments
permissions:
id-token: write # for Codecov OIDC
contents: read # for Codecov OIDC
# TODO: Restore "mocha-github-actions-reporter" style reporting without relying on third party module
# https://github.com/mochajs/mocha/issues/5183
uses: ./.github/workflows/npm-script.yml
needs: test-node-lts
strategy:
fail-fast: false
matrix:
coverage: [true]
test-part:
- interfaces
- unit
- integration
- requires
- reporters
- only
include:
- test-part: jsapi
coverage: false
with:
os: "ubuntu-latest,windows-latest"
# We pin exact versions here per https://github.com/mochajs/mocha/issues/5052
# Ref https://nodejs.org/en/about/previous-releases
node-versions: "20.19.4,22.18.0,24.6.0"
npm-script: test-node:${{ matrix.test-part }}
coverage: ${{ matrix.coverage }}
test-browser:
name: Browser tests
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: "22"
cache: "npm"
- run: npm ci --ignore-scripts
- run: npm run test-browser
env:
NODE_OPTIONS: "--trace-warnings"
tsc:
uses: ./.github/workflows/npm-script.yml
with:
npm-script: tsc