chore(deps): update vitest monorepo to v4 (major) #513
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: PR | |
| on: [pull_request] | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: setup pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 | |
| - name: setup node | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 | |
| with: | |
| node-version: 21 | |
| cache: "pnpm" | |
| - name: install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: typecheck | |
| run: pnpm typecheck | |
| - name: tests | |
| run: pnpm test | |
| bench: | |
| name: Benchmark | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: setup pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 | |
| - name: setup node | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 | |
| with: | |
| node-version: 22 | |
| cache: "pnpm" | |
| - name: install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: bench | |
| run: pnpm bench | |
| release_snapshot: | |
| if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }} | |
| name: Release snapshot | |
| uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main | |
| with: | |
| npmTag: alpha | |
| buildScript: build | |
| nodeVersion: 20 | |
| packageManager: pnpm | |
| secrets: | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| npmToken: ${{ secrets.NPM_TOKEN }} | |
| release_candidate: | |
| uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main | |
| name: Release candidate | |
| if: ${{ github.event.pull_request.title == 'Upcoming Release Changes' }} | |
| with: | |
| npmTag: rc | |
| restoreDeletedChangesets: true | |
| buildScript: build | |
| nodeVersion: 20 | |
| packageManager: pnpm | |
| secrets: | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| npmToken: ${{ secrets.NPM_TOKEN }} |