Skip to content

Commit

Permalink
combined component-test and run-component-tests workflows since its n…
Browse files Browse the repository at this point in the history
…ow a matrix strategy and much simpler
  • Loading branch information
rkthtrifork committed Dec 5, 2023
1 parent aaaf105 commit 33ec6f5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 44 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/component-test.yml

This file was deleted.

25 changes: 19 additions & 6 deletions .github/workflows/run-component-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
needs: should-run
if: ${{ needs.should-run.outputs.should-run }}

runs-on: ubuntu-latest
strategy:
matrix:
include:
Expand Down Expand Up @@ -51,9 +52,21 @@ jobs:
- folder: TumblingWindow
initial-kafka-topics: "TumblingWindowInputTopic TumblingWindowOutputTopic"

uses: ./.github/workflows/component-test.yml
with:
folder: ${{ matrix.folder }}
initial-kafka-topics: ${{ matrix.initial-kafka-topics }}
secrets:
PAT: ${{ secrets.PACKAGE_PAT }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check if files have changed
uses: tj-actions/changed-files@v40
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.PAT }}
initial-kafka-topics: ${{ matrix.initial-kafka-topics }}

0 comments on commit 33ec6f5

Please sign in to comment.