name: Tests on: push: branches: - main pull_request: branches: - main jobs: test: name: Run tests and collect coverage runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 2 - uses: pnpm/action-setup@v4 name: Install pnpm with: version: 9 run_install: false - name: Install Node.js uses: actions/setup-node@v3 with: node-version: 24 cache: pnpm registry-url: https://registry.npmjs.org - name: Install dependencies run: pnpm install --frozen-lockfile - name: Run tests run: pnpm vitest run --coverage --reporter=json working-directory: lib - name: Upload results to Codecov uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }}