Skip to content

Commit e3cd6a4

Browse files
feat: add Triglav as end-to-end test orchestrator (#148)
Co-authored-by: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com>
1 parent 97d22a0 commit e3cd6a4

5 files changed

Lines changed: 66 additions & 5 deletions

File tree

.github/workflows/auto-pull-request-create.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ on:
99
- dependabot/**
1010

1111
permissions:
12-
contents: read
12+
contents: write
1313
packages: write
1414
pull-requests: write
15+
issues: write
1516

1617
jobs:
1718
call:

.github/workflows/auto-release-create.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ on:
2121
permissions:
2222
contents: write
2323
packages: write
24-
pull-requests: read
24+
pull-requests: write
25+
issues: write
2526

2627
jobs:
2728
call:
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: (Manual) E2E Validate
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
mode:
7+
description: Validation mode
8+
required: false
9+
default: ref
10+
type: choice
11+
options:
12+
- ref
13+
- image
14+
image_tag:
15+
description: Image tag used when mode=image (for example v1.2.3-test or v1.2.3-rc)
16+
required: false
17+
default: ""
18+
type: string
19+
20+
permissions:
21+
contents: read
22+
packages: read
23+
24+
jobs:
25+
e2e:
26+
uses: devops-infra/triglav/.github/workflows/e2e-action-template-action.yml@master
27+
with:
28+
mode: ${{ inputs.mode }}
29+
image_tag: ${{ inputs.image_tag }}
30+
secrets: inherit

.github/workflows/manual-release-branch-prepare.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ permissions:
2727
contents: write
2828
packages: write
2929
pull-requests: write
30+
issues: write
3031

3132
jobs:
3233
call:

README.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
template-action:
8686
runs-on: ubuntu-latest
8787
steps:
88-
- uses: actions/checkout@v5
88+
- uses: actions/checkout@v6
8989

9090
- uses: devops-infra/template-action@v1
9191
```
@@ -100,7 +100,7 @@ jobs:
100100
template-action:
101101
runs-on: ubuntu-latest
102102
steps:
103-
- uses: actions/checkout@v5
103+
- uses: actions/checkout@v6
104104

105105
- uses: devops-infra/template-action@v1
106106
with:
@@ -121,7 +121,7 @@ jobs:
121121
template-action:
122122
runs-on: ubuntu-latest
123123
steps:
124-
- uses: actions/checkout@v5
124+
- uses: actions/checkout@v6
125125
126126
- uses: devops-infra/template-action@v1.0.7
127127
id: Pin patch version
@@ -205,6 +205,34 @@ If you have any questions or need help, please:
205205
- 📝 Create an [issue](https://github.com/devops-infra/template-action/issues)
206206
- 🌟 Star this repository if you find it useful!
207207

208+
## 🧪 End-to-End Validation
209+
Template action E2E validation is now part of the centralized org flow.
210+
211+
- Pull requests: runs automatically via reusable org workflow hooks.
212+
- Release branch prepare: runs automatically against release candidate refs.
213+
- Release create: runs automatically against production release refs.
214+
215+
Manual execution options:
216+
217+
- Repository-local caller workflow: `.github/workflows/manual-e2e-validate.yml`
218+
- Centralized workflow directly: `devops-infra/triglav/.github/workflows/e2e-action-template-action.yml`
219+
220+
Execution modes:
221+
222+
- `mode=ref` validates ref-oriented E2E paths against stable pinned action refs.
223+
- `mode=image` is wired but currently placeholder-only in the central E2E workflow for this action.
224+
225+
Example trigger inputs:
226+
227+
```text
228+
mode=ref
229+
```
230+
231+
```text
232+
mode=image
233+
image_tag=v1.2.3-test
234+
```
235+
208236
## Forking
209237
To publish images from a fork, set these variables so Task uses your registry identities:
210238
`DOCKER_USERNAME`, `DOCKER_ORG_NAME`, `GITHUB_USERNAME`, `GITHUB_ORG_NAME`.

0 commit comments

Comments
 (0)