-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from trifork/feature/run-all-tests-workflow
added workflow for running all component tests with custom developmen…
- Loading branch information
Showing
2 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
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 |
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