Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use workflow call to run integration tests after image build #3705

Merged
merged 4 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/busola-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ permissions:

jobs:
build-busola-image:
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
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
if: github.event.pull_request.draft == false
with:
name: busola
dockerfile: Dockerfile
tags: ${{ inputs.tag != '' && inputs.tag || 'latest' }}
build-args: ${{ inputs.tag != '' && format('tag={0}', inputs.tag) || '' }}

run-k3d-integration-tests:
needs: build-busola-image
uses: ./.github/workflows/pull-kyma-integration-tests.yml
with:
pr_number: ${{github.event.number}}
12 changes: 7 additions & 5 deletions .github/workflows/pull-kyma-integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: PR Kyma Dashboard Integration Tests Dev

on:
workflow_run:
workflows: [ Busola Build ]
types:
- completed
workflow_call:
inputs:
pr_number:
description: "PR number"
required: true
type: string
jobs:
run-integration-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,7 +38,7 @@ jobs:
env:
ENV: dev
run: |
.github/scripts/deploy_busola.sh PR-${{ github.event.number }} | tee busola-deploy.log
.github/scripts/deploy_busola.sh PR-${{ inputs.pr_number }} | tee busola-deploy.log
- name: Prepare kubeconfig
run: |
.github/scripts/prepare_kubeconfig.sh
Expand Down
Loading