Skip to content

Commit d1805d0

Browse files
committed
ci: Add self-hosted test job
1 parent e4aa639 commit d1805d0

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/checks.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,35 @@ jobs:
5454
with:
5555
test-results: test.json
5656

57-
e2e-test:
57+
e2e-quick-start:
5858
strategy:
5959
matrix:
6060
provider:
6161
- Docker
62+
# Uncomment below once we have the ability to run e2e tests on AWS from GHA.
63+
# - AWS
6264
fail-fast: false
6365
uses: ./.github/workflows/e2e.yml
6466
with:
6567
provider: ${{ matrix.provider }}
68+
focus: Quick start
69+
secrets: inherit
70+
permissions:
71+
contents: read
72+
checks: write
73+
74+
e2e-self-hosted:
75+
strategy:
76+
matrix:
77+
provider:
78+
- Docker
79+
# Uncomment below once we have the ability to run e2e tests on AWS from GHA.
80+
# - AWS
81+
fail-fast: false
82+
uses: ./.github/workflows/e2e.yml
83+
with:
84+
provider: ${{ matrix.provider }}
85+
focus: Self-hosted
6686
secrets: inherit
6787
permissions:
6888
contents: read
@@ -138,7 +158,7 @@ jobs:
138158
uses: actions/cache@v4
139159
with:
140160
path: ~/.cache/pre-commit
141-
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
161+
key: pre-commit-3|${{ hashFiles('.pre-commit-config.yaml') }}
142162

143163
- name: Run pre-commit
144164
run: devbox run -- make pre-commit

.github/workflows/e2e.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
description: Infrastructure provider to run e2e tests with
99
type: string
1010
required: true
11+
skip:
12+
description: e2e tests to skip
13+
type: string
14+
focus:
15+
description: e2e tests to focus
16+
type: string
1117

1218
jobs:
1319
e2e-test:
@@ -37,7 +43,7 @@ jobs:
3743
${{ runner.os }}-go-
3844
3945
- name: Run e2e tests
40-
run: devbox run -- make e2e-test E2E_LABEL='provider:${{ inputs.provider }}'
46+
run: devbox run -- make e2e-test E2E_LABEL='provider:${{ inputs.provider }}' E2E_SKIP='${{ inputs.skip }}' E2E_FOCUS='${{ inputs.focus }}'
4147
env:
4248
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4349

0 commit comments

Comments
 (0)