Skip to content

feat: v0.18.0

feat: v0.18.0 #450

Workflow file for this run

name: Test
on:
pull_request:
types: [ready_for_review, opened, synchronize, reopened]
paths:
- '**/tsconfig.json'
- 'tests/**/*.ts'
- 'src/**/*.ts'
- 'jest.config.ts'
- 'package-lock.json'
branches:
- main
- 'release/*'
jobs:
setup-test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
# subsequent calls to this action will use already downloaded code from the workspace
- uses: actions/checkout@v3
jest-browser:
needs: setup-test
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: 'latest'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests on jsdom
run: npx jest --selectProjects=jsdom
jest-node:
needs: setup-test
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
# current and active LTS
node: [ 18, 20 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests on node v${{ matrix.node }}
run: npx jest --selectProjects=node