Skip to content

ci: add GitHub Actions workflow for PR testing with coverage #2

ci: add GitHub Actions workflow for PR testing with coverage

ci: add GitHub Actions workflow for PR testing with coverage #2

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install
- run: pnpm -r --filter './packages/*' build
- name: Run tests with coverage
run: pnpm -r test -- --coverage