Skip to content

Commit 9424668

Browse files
authored
feat: Use workflow call to run integration tests after image build (kyma-project#3705)
* triiger build: * remove workflow_run * small improvements * remove triiger
1 parent 6d16eea commit 9424668

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/busola-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ permissions:
4242

4343
jobs:
4444
build-busola-image:
45-
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
45+
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: https://github.com/kyma-project/test-infra/blob/main/.github/workflows/image-builder.yml
4646
if: github.event.pull_request.draft == false
4747
with:
4848
name: busola
4949
dockerfile: Dockerfile
5050
tags: ${{ inputs.tag != '' && inputs.tag || 'latest' }}
5151
build-args: ${{ inputs.tag != '' && format('tag={0}', inputs.tag) || '' }}
52+
53+
run-k3d-integration-tests:
54+
needs: build-busola-image
55+
uses: ./.github/workflows/pull-kyma-integration-tests.yml
56+
with:
57+
pr_number: ${{github.event.number}}

.github/workflows/pull-kyma-integration-tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: PR Kyma Dashboard Integration Tests Dev
22

33
on:
4-
workflow_run:
5-
workflows: [ Busola Build ]
6-
types:
7-
- completed
4+
workflow_call:
5+
inputs:
6+
pr_number:
7+
description: "PR number"
8+
required: true
9+
type: string
810
jobs:
911
run-integration-test:
1012
runs-on: ubuntu-latest
@@ -36,7 +38,7 @@ jobs:
3638
env:
3739
ENV: dev
3840
run: |
39-
.github/scripts/deploy_busola.sh PR-${{ github.event.number }} | tee busola-deploy.log
41+
.github/scripts/deploy_busola.sh PR-${{ inputs.pr_number }} | tee busola-deploy.log
4042
- name: Prepare kubeconfig
4143
run: |
4244
.github/scripts/prepare_kubeconfig.sh

0 commit comments

Comments
 (0)