Skip to content

Run All Component Tests #1

Run All Component Tests

Run All Component Tests #1

name: Run All Component Tests
on:
workflow_dispatch:
inputs:
development-infrastructure-ref:
description: Which branch to run development infrastructure from
required: false
default: v2.0.0
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
should-run:
uses: trifork/cheetah-infrastructure-utils-workflows/.github/workflows/e2e-should-run.yml@main
run-component-tests:
name: ${{ matrix.folder }}
needs: should-run
if: ${{ needs.should-run.outputs.should-run }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- folder: AvroToJson
initial-kafka-topics: "AvroToJsonInputTopic AvroToJsonOutputTopic"
- folder: DockerComposeExamples/RunMultipleFlinkJobs
initial-kafka-topics: "JsonToAvroInputTopic JsonToAvroOutputTopic"
- folder: EnrichStream
initial-kafka-topics: "EnrichStreamEnrichTopic EnrichStreamInputTopic EnrichStreamOutputTopic"
- folder: ExternalLookup
initial-kafka-topics: "ExternalLookupInputTopic ExternalLookupOutputTopic"
- folder: FlinkStates
initial-kafka-topics: "FlinkStatesInputTopic FlinkStatesOutputTopic-value FlinkStatesOutputTopic-reducing FlinkStatesOutputTopic-aggregating FlinkStatesOutputTopic-list FlinkStatesOutputTopic-map"
- folder: JsonToAvro
initial-kafka-topics: "jsonToAvroInputTopic jsonToAvroOutputTopic"
- folder: MultipleSideOutput
initial-kafka-topics: "MultipleSideOutputExampleInputTopic OutputA-events OutputB-events OutputCD-events"
- folder: Observability
initial-kafka-topics: "ObservabilityInputTopic"
- folder: SerializationErrorCatch
initial-kafka-topics: "SerializationErrorCatchInputTopic SerializationErrorCatchInputTopic SerializationErrorCatchOutputTopic"
- folder: TransformAndStore
initial-kafka-topics: "TransformAndStoreInputTopic"
- folder: TumblingWindow
initial-kafka-topics: "TumblingWindowInputTopic TumblingWindowOutputTopic"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Flink States example image and run component test
uses: ./.github/actions/component-test
with:
context-path: ./${{ matrix.folder }}/
access-token: ${{ secrets.PACKAGE_PAT }}
initial-kafka-topics: ${{ matrix.initial-kafka-topics }}
development-infrastructure-ref: ${{ inputs.development-infrastructure-ref }}
success:
name: Success
needs: run-component-tests
runs-on: ubuntu-latest
steps:
- name: Success
shell: bash
run: echo success