Skip to content

Commit

Permalink
fix: add input for scripted inputs os (#296)
Browse files Browse the repository at this point in the history
List of OSs for scripted inputes tests can be provided as an input to
reusable workflow.
Tested:
splunk/splunk-add-on-for-unix-and-linux#577
  • Loading branch information
mkolasinski-splunk committed Jul 12, 2024
1 parent 2af4f65 commit 72497e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ on:
description: "branch for k8s manifests to run the tests on"
type: string
default: "v3.0.2"
scripted-inputs-os-list:
required: false
description: "list of OS used for scripted input tests"
type: string
default: >-
["ubuntu:14.04", "ubuntu:16.04","ubuntu:18.04","ubuntu:22.04", "ubuntu:24.04", "redhat:8.4", "redhat:8.5", "redhat:8.6", "redhat:8.8"]
secrets:
GH_TOKEN_ADMIN:
description: Github admin token
Expand Down Expand Up @@ -1831,7 +1837,7 @@ jobs:
fail-fast: false
matrix:
splunk: ${{ fromJson(needs.meta.outputs.matrix_combinedSplunkversion) }}
os: [ "ubuntu:14.04", "ubuntu:16.04","ubuntu:18.04","ubuntu:22.04", "centos:7", "redhat:8.0", "redhat:8.2", "redhat:8.3", "redhat:8.4", "redhat:8.5" ]
os: ${{ fromJson(inputs.scripted-inputs-os-list) }}
container:
image: ghcr.io/splunk/workflow-engine-base:4.1.0
env:
Expand Down

0 comments on commit 72497e5

Please sign in to comment.