Detect stale Git comparisons on re-entry #1167
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: Web Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| web-tests: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| # Node backs the vitest step (vitest crashes under Bun's runtime) and any | |
| # node-shebang tooling; 24 is current and runs TypeScript 7 cleanly. | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Install web dependencies | |
| working-directory: web | |
| run: bun install --frozen-lockfile | |
| - name: Compile Paraglide messages | |
| working-directory: web | |
| run: bun run i18n:compile | |
| # svelte-check and eslint run under Bun (faster, and Bun's runtime handles | |
| # the TypeScript 7 API that breaks under older Node). vitest stays on Node. | |
| - name: Run web checks | |
| working-directory: web | |
| run: bun run --bun check | |
| - name: Run web lint | |
| working-directory: web | |
| run: bun run --bun lint | |
| - name: Run web tests | |
| working-directory: web | |
| run: bun run test |