Run Component Tests #1726
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: Run Component Tests | |
on: | |
workflow_call: | |
schedule: | |
- cron: "0 3 * * *" | |
push: | |
branches: [ 'main', 'release/v**' ] | |
pull_request: | |
branches: [ 'main', 'release/v**' ] | |
types: [ opened, synchronize, reopened, labeled ] | |
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 | |
timeout-minutes: 15 | |
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 SerializationErrorCatchOutputTopic" | |
- folder: SerializationErrorSideOutput | |
initial-kafka-topics: "SerializationErrorSideOutputInputTopic SerializationErrorSideOutputOutputTopic SerializationErrorSideOutputOutputTopicUnParsed" | |
- folder: TransformAndStore | |
initial-kafka-topics: "TransformAndStoreInputTopic" | |
- folder: TumblingWindow | |
initial-kafka-topics: "TumblingWindowInputTopic TumblingWindowOutputTopic" | |
- folder: KeySerializationSchema | |
initial-kafka-topics: "KeySerializationSchemaInputTopic KeySerializationSchemaOutputTopic" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check if files have changed | |
uses: tj-actions/changed-files@v45 | |
id: changed-files | |
with: | |
files: | | |
${{ matrix.folder }}/** | |
- name: Build Flink States example image and run component test | |
uses: ./.github/actions/component-test | |
if: ${{ steps.changed-files.outputs.any_changed == 'true' }} | |
with: | |
context-path: ./${{ matrix.folder }}/ | |
access-token: ${{ secrets.READ_PACKAGE_PAT }} | |
initial-kafka-topics: ${{ matrix.initial-kafka-topics }} | |
success: | |
name: Success | |
needs: run-component-tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Success | |
shell: bash | |
run: echo success |