Skip to content

Fix GH actions pnpm version #3

Fix GH actions pnpm version

Fix GH actions pnpm version #3

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
name: Test & Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm run typecheck
- name: Lint & format check
run: pnpm run check
- name: Build
run: pnpm run build
- name: Run tests
run: pnpm run test
- name: Run tests with coverage
run: pnpm run test:coverage
if: matrix.node-version == 20
- name: Upload coverage reports
uses: codecov/codecov-action@v4
if: matrix.node-version == 20
with:
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}