Bump vitest from 0.34.6 to 1.5.1 in /frontend #398
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 Frontend | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "frontend/**" | |
- "!frontend/README.md" | |
- ".github/workflows/test-frontend.yaml" | |
pull_request: | |
branches: [main] | |
paths: | |
- "frontend/**" | |
- "!frontend/README.md" | |
- ".github/workflows/test-frontend.yaml" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test Code | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
# Step into frontend | |
working-directory: ./frontend | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.16 | |
cache: 'npm' | |
cache-dependency-path: 'frontend' | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run tests | |
run: npm run test |