chore(deps): Bump actions/checkout from 4 to 5 #45
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "**.ts" | |
| - "*.config.ts" | |
| - "tsconfig.json" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - ".github/workflows/ci.yaml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "**.ts" | |
| - "*.config.ts" | |
| - "tsconfig.json" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - ".github/workflows/ci.yaml" | |
| jobs: | |
| ci: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04] | |
| node: [18.x, 20.x, 22.x, 23.x, 24.x] | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{matrix.node}} | |
| - name: Setup pnpm | |
| id: pnpm-install | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Get pnpm store directory | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(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: pnpm i --frozen-lockfile --prefer-offline | |
| - name: Run tests | |
| run: pnpm coverage | |
| - name: Upload coverage report | |
| if: matrix.node == '22.x' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} |