Skip to content

Commit

Permalink
Merge pull request #205 from trifork/feature/run-all-tests-workflow
Browse files Browse the repository at this point in the history
added workflow for running all component tests with custom developmen…
  • Loading branch information
rkthtrifork authored Apr 22, 2024
2 parents b0ef4ac + d8f8603 commit 4780548
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 7 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/run-all-component-tests.yml
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
7 changes: 0 additions & 7 deletions .github/workflows/run-component-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: Run Component Tests

on:
workflow_call:
workflow_dispatch:
inputs:
development-infrastructure-ref:
description: Which branch to run development infrastructure from
required: false
default: v2.0.0
schedule:
- cron: "0 3 * * *"
push:
Expand Down Expand Up @@ -84,7 +78,6 @@ jobs:
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
Expand Down

0 comments on commit 4780548

Please sign in to comment.