Skip to content

Commit

Permalink
Fix platform test action's ability to find platform tests inside a su…
Browse files Browse the repository at this point in the history
…bdirectory

Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall committed Jan 7, 2025
1 parent dd57437 commit ddc20ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/platform-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:

- name: List tests
id: list_tests
working-directory: charts/k8s-monitoring/tests/platform
run: |
allTests=$(find charts/k8s-monitoring/tests/platform -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | jq --raw-input --slurp --compact-output 'split("\n") | map(select(. != ""))')
allTests=$(find . -name values.yaml -type f -exec dirname {} \; | sed "s|^\./||" | jq --raw-input --slurp --compact-output 'split("\n") | map(select(. != ""))')
if [ "${{ github.event_name }}" == "pull_request" ]; then
# All labels on this PR
labels='${{ toJson(github.event.pull_request.labels.*.name) }}'
Expand Down

0 comments on commit ddc20ba

Please sign in to comment.