Skip to content

Commit ad58eaa

Browse files
authored
Skip C3 E2E if possible, using turbo-ignore (#7946)
1 parent 79418d4 commit ad58eaa

File tree

2 files changed

+25
-65
lines changed

2 files changed

+25
-65
lines changed

.github/workflows/c3-e2e-experimental.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/c3-e2e.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,31 @@ on:
55
pull_request:
66

77
jobs:
8+
turbo-ignore:
9+
outputs:
10+
skip: ${{ steps.skip.outcome }}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v4
15+
with:
16+
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)
22+
823
e2e:
924
# Note: please keep this job in sync with the e2e-only-dependabot-bumped-framework one
1025
#  in .github/workflows/c3-e2e-dependabot.yml
26+
needs: ["turbo-ignore"]
27+
if: ${{ needs.turbo-ignore.outputs.skip == 'failure' }}
1128
timeout-minutes: 45
1229
concurrency:
13-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.pm.name }}-${{ matrix.pm.version }}
30+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.pm.name }}-${{ matrix.pm.version }}-${{ matrix.experimental }}
1431
cancel-in-progress: true
15-
name: ${{ format('Run tests for {0}@{1} on {2}', matrix.pm.name, matrix.pm.version, matrix.os) }}
32+
name: ${{ format('Run tests for {0}@{1} on {2} (experimental:{3})', matrix.pm.name, matrix.pm.version, matrix.os, matrix.experimental) }}
1633
strategy:
1734
fail-fast: false
1835
matrix:
@@ -24,10 +41,15 @@ jobs:
2441
{ name: bun, version: "1.0.3" },
2542
{ name: yarn, version: "1.0.0" },
2643
]
44+
experimental: [true, false]
2745
# include a single windows test with pnpm
2846
include:
2947
- os: windows-latest
3048
pm: { name: pnpm, version: "9.12.0" }
49+
experimental: true
50+
- os: windows-latest
51+
pm: { name: pnpm, version: "9.12.0" }
52+
experimental: false
3153
runs-on: ${{ matrix.os }}
3254
steps:
3355
- name: Checkout Repo
@@ -58,5 +80,6 @@ jobs:
5880
packageManager: ${{ matrix.pm.name }}
5981
packageManagerVersion: ${{ matrix.pm.version }}
6082
quarantine: false
83+
experimental: ${{ matrix.experimental }}
6184
accountId: ${{ secrets.C3_TEST_CLOUDFLARE_ACCOUNT_ID }}
6285
apiToken: ${{ secrets.C3_TEST_CLOUDFLARE_API_TOKEN }}

0 commit comments

Comments
 (0)