Skip to content

Drop wrong postinstall #89

Drop wrong postinstall

Drop wrong postinstall #89

Workflow file for this run

name: "Test & Coverage"
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm with version specified in 'packageManager'
uses: pnpm/action-setup@v4
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: "pnpm"
- name: Enable Corepack
run: corepack enable
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(corepack pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: corepack pnpm install --frozen-lockfile
- name: Run type check
run: corepack pnpm typecheck
- name: Run linter
run: corepack pnpm lint
- name: Run tests with coverage
run: corepack pnpm test:coverage
- name: Report Coverage
if: always()
uses: davelosert/vitest-coverage-report-action@v2