chore: update bug_report to ask for Vitest/Vite versions #273
This file contains 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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-14, windows-latest] | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build | |
- run: pnpm typecheck | |
- run: pnpm lint | |
- name: test | |
run: | | |
pnpm test | |
- name: test-e2e | |
run: | | |
pnpm -C samples/e2e i | |
pnpm -C samples/monorepo-vitest-workspace i | |
pnpm -C samples/browser i | |
npm -C samples/imba i | |
pnpm test-e2e --retry 2 | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
path: test-results |