Skip to content

chore: switch to ESM (#856) #457

chore: switch to ESM (#856)

chore: switch to ESM (#856) #457

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
typecheck:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 18
check-latest: true
cache: "pnpm"
- run: pnpm install
- run: pnpm run build
- run: pnpm tsc --noEmit
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 18
check-latest: true
cache: "pnpm"
- run: pnpm install
- run: pnpm run build
- run: pnpm run lint
test:
runs-on: ubuntu-22.04
strategy:
matrix:
test-environment:
- node
- jsdom
node:
- "18"
- "19"
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: "pnpm"
- run: pnpm install
- run: pnpm run build
- run: pnpm run test:coverage --testEnvironment ${{ matrix.test-environment }}
- uses: codecov/[email protected]