-
Notifications
You must be signed in to change notification settings - Fork 772
85 lines (79 loc) · 2.81 KB
/
c3-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Runs c3 e2e tests on pull requests with c3 changes
name: C3 E2E Tests
on:
pull_request:
jobs:
turbo-ignore:
outputs:
skip: ${{ steps.skip.outcome }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- shell: bash
id: skip
continue-on-error: true
run: |
npx turbo-ignore create-cloudflare --task="test:e2e" --fallback=$(git merge-base origin/main HEAD)
e2e:
# Note: please keep this job in sync with the e2e-only-dependabot-bumped-framework one
# in .github/workflows/c3-e2e-dependabot.yml
needs: ["turbo-ignore"]
if: ${{ needs.turbo-ignore.outputs.skip == 'failure' }}
timeout-minutes: 45
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.pm.name }}-${{ matrix.pm.version }}-${{ matrix.experimental }}
cancel-in-progress: true
name: ${{ format('Run tests for {0}@{1} on {2} (experimental:{3})', matrix.pm.name, matrix.pm.version, matrix.os, matrix.experimental) }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
pm:
[
{ name: npm, version: "0.0.0" },
{ name: pnpm, version: "9.12.0" },
{ name: bun, version: "1.0.3" },
{ name: yarn, version: "1.0.0" },
]
experimental: [true, false]
# include a single windows test with pnpm
include:
- os: windows-latest
pm: { name: pnpm, version: "9.12.0" }
experimental: true
- os: windows-latest
pm: { name: pnpm, version: "9.12.0" }
experimental: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
everything_but_markdown:
- '!**/*.md'
- name: Install Dependencies
if: steps.changes.outputs.everything_but_markdown == 'true'
uses: ./.github/actions/install-dependencies
with:
turbo-api: ${{ secrets.TURBO_API }}
turbo-team: ${{ secrets.TURBO_TEAM }}
turbo-token: ${{ secrets.TURBO_TOKEN }}
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
- name: E2E Tests
if: steps.changes.outputs.everything_but_markdown == 'true'
uses: ./.github/actions/run-c3-e2e
with:
packageManager: ${{ matrix.pm.name }}
packageManagerVersion: ${{ matrix.pm.version }}
quarantine: false
experimental: ${{ matrix.experimental }}
accountId: ${{ secrets.C3_TEST_CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.C3_TEST_CLOUDFLARE_API_TOKEN }}