build(deps-dev): bump the npm_and_yarn group across 1 directory with 2 updates #97
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
| # workflow for testing the frontend | |
| name: frontend-CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| test-frontend: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| name: Install pnpm | |
| with: | |
| version: 10 | |
| run_install: false | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| cache-dependency-path: 'src/frontend/pnpm-lock.yaml' | |
| - name: Install dependencies | |
| run: | | |
| cd src/frontend | |
| pnpm install | |
| - name: Generate SvelteKit files | |
| run: | | |
| cd src/frontend | |
| pnpm svelte-kit sync | |
| - name: Install Playwright Browsers and run tests | |
| run: | | |
| cd src/frontend | |
| # pnpm install playwright | |
| pnpm exec playwright install --with-deps | |
| pnpm test | |
| - name: Run unit tests (Vitest) | |
| run: | | |
| cd src/frontend | |
| pnpm test:unit | |
| - name: Generate unit test coverage | |
| run: | | |
| cd src/frontend | |
| pnpm coverage | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: vitest-coverage | |
| path: src/frontend/coverage/ | |
| retention-days: 30 | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: src/frontend/playwright-report/ | |
| retention-days: 30 |