Update vitest monorepo to v4 #206
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: Test and lint | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: ["**"] | |
| permissions: {} | |
| jobs: | |
| check: | |
| name: Test and lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Node setup | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 | |
| with: | |
| cache-dependency-path: package.json | |
| node-version: "20.x" | |
| cache: "npm" | |
| - name: Install and build | |
| run: | | |
| npm i | |
| npm run build | |
| - name: Publish package for testing branch | |
| run: npx pkg-pr-new publish || echo "pkg-pr-new failed" | |
| - name: Test | |
| run: | | |
| npm run test | |
| npm run typecheck | |
| npm run lint |