Bump vitest from 3.2.4 to 4.0.10 #100
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: 'E2E Tests' | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| merge_group: | |
| workflow_dispatch: | |
| inputs: | |
| branch_ref: | |
| description: 'Branch to run on' | |
| required: true | |
| default: 'main' | |
| type: 'string' | |
| workflow_call: | |
| concurrency: | |
| group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}' | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| e2e_tests: | |
| name: 'E2E Test (${{ matrix.os }}, Node ${{ matrix.node-version }})' | |
| runs-on: '${{ matrix.os }}' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - 'ubuntu-latest' | |
| - 'macos-latest' | |
| - 'windows-latest' | |
| node-version: | |
| - '22.x' | |
| steps: | |
| - name: 'Checkout' | |
| uses: 'actions/checkout@v4' | |
| with: | |
| ref: '${{ github.event.inputs.branch_ref || github.ref }}' | |
| - name: 'Set up Node.js ${{ matrix.node-version }}' | |
| uses: 'actions/setup-node@v4' | |
| with: | |
| node-version: '${{ matrix.node-version }}' | |
| cache: 'npm' | |
| - name: 'Install dependencies' | |
| run: 'npm ci' | |
| - name: 'Build project' | |
| run: 'npm run build' | |
| - name: 'Run E2E tests' | |
| env: | |
| FORCE_COLOR: '1' | |
| VERBOSE: 'true' | |
| run: 'npm test' | |
| e2e: | |
| name: 'E2E Tests Summary' | |
| if: always() | |
| needs: | |
| - 'e2e_tests' | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - name: 'Check E2E test results' | |
| run: | | |
| if [[ ${{ needs.e2e_tests.result }} != 'success' && ${{ needs.e2e_tests.result }} != 'skipped' ]]; then | |
| echo "❌ E2E tests failed." | |
| exit 1 | |
| fi | |
| echo "✅ All E2E tests passed!" |