Skip to content

Commit 8c56e91

Browse files
committed
Call e2e test workflow from build with installer version
1 parent 8e34bed commit 8c56e91

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,17 @@ jobs:
409409
test_build_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
410410
test_build_ref: ${{ github.head_ref || github.ref }}
411411

412+
workspace-integration-tests-main:
413+
name: "Run workspace integration tests on main branch"
414+
needs:
415+
- configuration
416+
- build-gitpod
417+
- create-runner
418+
# if: needs.configuration.outputs.is_main_branch == 'true'
419+
uses: ./.github/workflows/workspace-integration-tests.yml
420+
with:
421+
version: ${{ needs.configuration.outputs.version }}
422+
412423
delete-runner:
413424
if: always()
414425
needs:

.github/workflows/workspace-integration-tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: "Workspace integration tests"
22
on:
3-
push:
4-
branches:
5-
- main
63
workflow_dispatch:
74
inputs:
85
name:
96
required: false
7+
type: string
108
description: "The name of the preview environment, or leave empty to use a default name"
119
version:
1210
required: false
11+
type: string
1312
description: "The version of Gitpod to install (leave empty to target the latest successful build on main)"
1413
skip_deploy:
1514
required: false
@@ -19,6 +18,16 @@ on:
1918
required: false
2019
type: boolean
2120
description: "Skip delete preview environment (debug only)"
21+
workflow_call:
22+
inputs:
23+
name:
24+
required: false
25+
type: string
26+
description: "The name of the preview environment, or leave empty to use a default name"
27+
version:
28+
required: false
29+
type: string
30+
description: "The version of Gitpod to install (leave empty to target the latest successful build on main)"
2231
schedule:
2332
- cron: "0 3,12 * * *"
2433

0 commit comments

Comments
 (0)