Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ self-hosted-runner:
- cncf-ubuntu-8-32-x86
- cncf-ubuntu-2-8-arm
- cncf-ubuntu-4-16-arm
- cncf-ubuntu-8-32-arm
- cncf-ubuntu-8-32-arm
paths:
.github/workflows/reusable-test-integrations.yml:
ignore:
# job.workflow_sha is supported by GitHub (runner >= v2.334.0) but not yet known to actionlint
- 'property "workflow_sha" is not defined in object type'
14 changes: 7 additions & 7 deletions .github/workflows/reusable-test-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ on:
type: boolean
default: true
githubActionsRef:
description: "Ref of strimzi/github-actions to use (tag, branch, or SHA). Leave empty for local calls within github-actions repo."
description: "Optional override of the strimzi/github-actions ref (tag, branch, or SHA). Defaults to the same commit as this reusable workflow (job.workflow_sha)."
required: false
type: string
default: ""
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: strimzi/github-actions
ref: ${{ inputs.githubActionsRef || github.sha }}
ref: ${{ inputs.githubActionsRef || job.workflow_sha }}
path: github-actions
persist-credentials: false

Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: strimzi/github-actions
ref: ${{ inputs.githubActionsRef || github.sha }}
ref: ${{ inputs.githubActionsRef || job.workflow_sha }}
path: github-actions
persist-credentials: false

Expand Down Expand Up @@ -321,7 +321,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: strimzi/github-actions
ref: ${{ inputs.githubActionsRef || github.sha }}
ref: ${{ inputs.githubActionsRef || job.workflow_sha }}
path: github-actions
persist-credentials: false

Expand Down Expand Up @@ -366,7 +366,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: strimzi/github-actions
ref: ${{ inputs.githubActionsRef || github.sha }}
ref: ${{ inputs.githubActionsRef || job.workflow_sha }}
path: github-actions
persist-credentials: false

Expand Down Expand Up @@ -435,7 +435,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: strimzi/github-actions
ref: ${{ inputs.githubActionsRef || github.sha }}
ref: ${{ inputs.githubActionsRef || job.workflow_sha }}
path: github-actions
persist-credentials: false

Expand Down Expand Up @@ -532,7 +532,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: strimzi/github-actions
ref: ${{ inputs.githubActionsRef || github.sha }}
ref: ${{ inputs.githubActionsRef || job.workflow_sha }}
path: github-actions
persist-credentials: false

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ In case we do update `push-container` or `release` flows in respective repositor
The result will be shown only in tests within `github-actions` repository, because it tests flow for all parts of build process.
To mitigate this, we have to run the same integration tests we have in this repository also in other repositories, just with different configurations.

The main difference is in `githubActionsRef` parameter.
This parameter says which branch of `github-actions` repo will be used for running the tests which should align with branch or version used in build/release workflows.
So for example in case we use version `1.0.0` in build workflow, we should keep the same in the tests to ensure that current actions will work with new changes.
The reusable workflow automatically checks out the actions from the same commit of `github-actions` repo as the one referenced in `uses:` (via `job.workflow_sha`).
That means bumping the version of the reusable workflow (e.g., by Dependabot/Renovate) is enough to keep the tested actions aligned with the version used in build/release workflows.
The optional `githubActionsRef` parameter overrides this ref. Callers normally should not set it, use it only when you explicitly need to test a different ref of the actions.

The following code snippet shows the workflow for Bridge repository:

Expand Down Expand Up @@ -238,7 +238,6 @@ jobs:
releaseVersion: "6.6.6"
imagesLocation: "kafka-bridge-amd64.tar.gz"
clusterOperatorBuild: false
githubActionsRef: "1.0.0"
secrets: inherit
```

Expand Down
Loading