test: begin API v2 fixture and contract migration #22
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: Public test suite | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: public-tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| policy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out tests | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Set up Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: 24.18.0 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version: 1.4.0 | |
| - name: Check public suite policy | |
| run: ./test policy | |
| unit: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out tests | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| path: core-tests | |
| - name: Read pinned Core revision | |
| id: core-ref | |
| run: echo "ref=$(tr -d '\n' < core-tests/core.ref)" >> "$GITHUB_OUTPUT" | |
| - name: Check out Core | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| repository: Windshiftapp/core | |
| ref: ${{ steps.core-ref.outputs.ref }} | |
| path: core | |
| - name: Set up Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: core/go.mod | |
| cache-dependency-path: core/go.sum | |
| - name: Set up Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version-file: core/.nvmrc | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version: 1.4.0 | |
| - name: Run fast unit tests | |
| working-directory: core-tests | |
| run: ./test --core ../core quick | |
| browser: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| env: | |
| CI: "true" | |
| E2E_FAIL_ON_UNEXPECTED_SKIP: "1" | |
| E2E_FAIL_ON_RETRY: "1" | |
| E2E_KEEP_ARTIFACTS: "1" | |
| steps: | |
| - name: Check out tests | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| path: core-tests | |
| - name: Read pinned Core revision | |
| id: core-ref | |
| run: echo "ref=$(tr -d '\n' < core-tests/core.ref)" >> "$GITHUB_OUTPUT" | |
| - name: Check out Core | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| repository: Windshiftapp/core | |
| ref: ${{ steps.core-ref.outputs.ref }} | |
| path: core | |
| - name: Set up Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: core/go.mod | |
| cache-dependency-path: core/go.sum | |
| - name: Set up Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version-file: core/.nvmrc | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version: 1.4.0 | |
| - name: Install Chromium | |
| working-directory: core-tests/e2e | |
| run: | | |
| npm ci | |
| bun --bun playwright install --with-deps chromium | |
| - name: Run browser tests | |
| working-directory: core-tests | |
| run: ./test --core ../core browser | |
| - name: Upload failure artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: public-browser-failure | |
| if-no-files-found: ignore | |
| path: | | |
| core/.e2e-server-*.log | |
| core-tests/e2e/e2e-summary*.json | |
| core-tests/e2e/playwright-report-*/ | |
| core-tests/e2e/test-results-*/ |