Unit tests and unauthenticated E2E tests: branch 5300-no-header-subfolder-for-mlar by @billhimmelsbach #57
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: Unit and E2E tests | |
| on: | |
| pull_request: | |
| run-name: "Unit tests and unauthenticated E2E tests: branch ${{ github.head_ref }} by @${{ github.actor }}" | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Run unit tests (Vitest) | |
| env: | |
| MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }} | |
| run: yarn unit-tests | |
| - name: Run legacy unit tests (Jest) | |
| env: | |
| MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }} | |
| run: yarn unit-tests-legacy | |
| - name: Run Cypress tests that don't require auth | |
| env: | |
| MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }} | |
| run: yarn test-unauthenticated |