feat: Use workflow call to run integration tests after image build #1553
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Busola Build | |
on: | |
workflow_call: | |
inputs: | |
tag: | |
description: "Additional tag for built images" | |
required: true | |
type: string | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/busola-build.yml" | |
- "backend/**" | |
- "kyma/**" | |
- "public/**" | |
- "src/**" | |
- "package.json" | |
- "Makefile" | |
- "Dockerfile" | |
- "nginx/nginx.conf" | |
pull_request_target: | |
types: [opened, edited, synchronize, reopened, ready_for_review] | |
paths: | |
- ".github/workflows/busola-build.yml" | |
- "kyma/**" | |
- "backend/**" | |
- "public/**" | |
- "src/**" | |
- "package.json" | |
- "Makefile" | |
- "Dockerfile*" | |
- "nginx/**" | |
- '.github/workflows/pull-kyma-intergation-tests.yml' | |
- 'resources/**' | |
- 'tests/integration/**' | |
permissions: | |
id-token: write # This is required for requesting the JWT token | |
contents: read # This is required for actions/checkout | |
jobs: | |
build-busola-image: | |
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: | |
uses: ./.github/workflows/pull-kyma-integration-tests.yml | |
with: | |
pr_number: ${{github.event.number}} |