|
4 | 4 | types: [synchronize, opened, reopened, labeled, unlabeled] |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - turbo-ignore: |
8 | | - if: contains(github.event.*.labels.*.name, 'c3-e2e' ) && github.event.pull_request.head.repo.owner.login == 'cloudflare' |
9 | | - outputs: |
10 | | - skip: ${{ steps.skip.outcome }} |
11 | | - runs-on: ubuntu-latest |
| 7 | + e2e-vp: |
| 8 | + # Note: please keep this job in sync with the e2e-only-dependabot-bumped-framework one |
| 9 | + # in .github/workflows/c3-e2e-dependabot.yml |
| 10 | + if: github.head_ref == 'changeset-release/main' |
| 11 | + timeout-minutes: 45 |
| 12 | + concurrency: |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.pm.name }}-${{ matrix.pm.version }} |
| 14 | + cancel-in-progress: true |
| 15 | + name: ${{ format('Run tests for {0}@{1} on {2}', matrix.pm.name, matrix.pm.version, matrix.os) }} |
| 16 | + strategy: |
| 17 | + fail-fast: false |
| 18 | + matrix: |
| 19 | + os: [ubuntu-latest] |
| 20 | + pm: [{ name: npm, version: "0.0.0" }, { name: yarn, version: "1.0.0" }] |
| 21 | + # include a single windows test with pnpm |
| 22 | + include: |
| 23 | + - os: windows-latest |
| 24 | + pm: { name: pnpm, version: "9.12.0" } |
| 25 | + runs-on: ${{ matrix.os }} |
12 | 26 | steps: |
13 | 27 | - name: Checkout Repo |
14 | 28 | uses: actions/checkout@v4 |
15 | 29 | with: |
16 | 30 | fetch-depth: 0 |
17 | | - - shell: bash |
18 | | - id: skip |
19 | | - continue-on-error: true |
20 | | - run: | |
21 | | - npx turbo-ignore create-cloudflare --task="test:e2e" --fallback=$(git merge-base origin/main HEAD) |
| 31 | + |
| 32 | + - uses: dorny/paths-filter@v3 |
| 33 | + id: changes |
| 34 | + with: |
| 35 | + filters: | |
| 36 | + everything_but_markdown: |
| 37 | + - '!**/*.md' |
| 38 | + - name: Install Dependencies |
| 39 | + if: steps.changes.outputs.everything_but_markdown == 'true' |
| 40 | + uses: ./.github/actions/install-dependencies |
| 41 | + with: |
| 42 | + node-version: 20.11.1 |
| 43 | + turbo-api: ${{ secrets.TURBO_API }} |
| 44 | + turbo-team: ${{ secrets.TURBO_TEAM }} |
| 45 | + turbo-token: ${{ secrets.TURBO_TOKEN }} |
| 46 | + turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} |
| 47 | + |
| 48 | + - name: E2E Tests (experimental) |
| 49 | + if: steps.changes.outputs.everything_but_markdown == 'true' |
| 50 | + uses: ./.github/actions/run-c3-e2e |
| 51 | + with: |
| 52 | + node-version: 20.11.1 |
| 53 | + packageManager: ${{ matrix.pm.name }} |
| 54 | + packageManagerVersion: ${{ matrix.pm.version }} |
| 55 | + quarantine: false |
| 56 | + experimental: true |
| 57 | + accountId: ${{ secrets.TEST_CLOUDFLARE_ACCOUNT_ID }} |
| 58 | + apiToken: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }} |
| 59 | + |
| 60 | + - name: E2E Tests (non-experimental) |
| 61 | + if: steps.changes.outputs.everything_but_markdown == 'true' |
| 62 | + uses: ./.github/actions/run-c3-e2e |
| 63 | + with: |
| 64 | + node-version: 20.11.1 |
| 65 | + packageManager: ${{ matrix.pm.name }} |
| 66 | + packageManagerVersion: ${{ matrix.pm.version }} |
| 67 | + quarantine: false |
| 68 | + experimental: false |
| 69 | + accountId: ${{ secrets.TEST_CLOUDFLARE_ACCOUNT_ID }} |
| 70 | + apiToken: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }} |
22 | 71 |
|
23 | 72 | e2e: |
24 | 73 | # Note: please keep this job in sync with the e2e-only-dependabot-bumped-framework one |
25 | 74 | # in .github/workflows/c3-e2e-dependabot.yml |
26 | | - needs: ["turbo-ignore"] |
27 | | - if: ${{ needs.turbo-ignore.outputs.skip == 'failure' }} |
28 | 75 | timeout-minutes: 45 |
29 | 76 | concurrency: |
30 | 77 | group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.pm.name }}-${{ matrix.pm.version }} |
|
34 | 81 | fail-fast: false |
35 | 82 | matrix: |
36 | 83 | os: [ubuntu-latest] |
37 | | - pm: |
38 | | - [ |
39 | | - { name: npm, version: "0.0.0" }, |
40 | | - { name: pnpm, version: "9.12.0" }, |
41 | | - { name: yarn, version: "1.0.0" }, |
42 | | - ] |
43 | | - # include a single windows test with pnpm |
44 | | - include: |
45 | | - - os: windows-latest |
46 | | - pm: { name: pnpm, version: "9.12.0" } |
| 84 | + pm: [{ name: pnpm, version: "9.12.0" }] |
| 85 | + |
47 | 86 | runs-on: ${{ matrix.os }} |
48 | 87 | steps: |
49 | 88 | - name: Checkout Repo |
|
57 | 96 | filters: | |
58 | 97 | everything_but_markdown: |
59 | 98 | - '!**/*.md' |
60 | | -
|
61 | 99 | - name: Install Dependencies |
62 | 100 | if: steps.changes.outputs.everything_but_markdown == 'true' |
63 | 101 | uses: ./.github/actions/install-dependencies |
|
0 commit comments