ci: ignore /tmp/
in jest
#918
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: pnpm setup | |
uses: pnpm/action-setup@v2 | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm run update | |
- run: pnpm run build | |
- run: pnpm run gen | |
working-directory: ./packages/site | |
- run: pnpm run test | |
- name: Install E2E test browsers | |
if: runner.os != 'Windows' | |
run: pnpm exec playwright install --with-deps chromium | |
- name: Run E2E tests | |
if: runner.os != 'Windows' | |
run: pnpm run test:e2e | |
- name: Upload E2E results | |
uses: actions/upload-artifact@v3 | |
if: runner.os != 'Windows' | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |