forked from kube-burner/kube-burner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflows to test kube-burner on ppc64le (kube-burner#697)
## Type of change - [ ] Refactor - [ ] New feature - [ ] Bug fix - [ ] Optimization - [ ] Documentation Update ## Description <!--- Describe your changes in detail --> This PR adds workflow to test the kube-burner binary on the ppc64le architecture, as a part of CI/release testing. A dedicated VM for the project is available, I can work with @krishvoor for the access and details for the broader team's usage. ## Related Tickets & Documents - Closes kube-burner#646 Signed-off-by: Kishen V <[email protected]>
- Loading branch information
Showing
3 changed files
with
79 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Execute tests on k8s - PowerPC | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
K8S_VERSION: "v1.31.0" | ||
|
||
jobs: | ||
ocp-e2e-ci: | ||
runs-on: PPC64LE | ||
|
||
steps: | ||
- name: Checkout the kube-burner repository | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
architecture: 'ppc64le' | ||
# Disable caching to avoid error : Cannot open: File exists | ||
# https://github.com/actions/setup-go/issues/314 | ||
cache: false | ||
|
||
|
||
- name: Install bats | ||
uses: bats-core/[email protected] | ||
with: | ||
bats-version: 1.11.0 | ||
support-install: false | ||
assert-install: false | ||
detik-install: false | ||
file-install: false | ||
|
||
- name: Install dependencies | ||
run: sudo yum install git podman make wget jq -y | ||
|
||
- name: Download kubectl binary | ||
run: | | ||
wget https://dl.k8s.io/${K8S_VERSION}/bin/linux/ppc64le/kubectl -O /tmp/kubectl --no-verbose | ||
chmod +x /tmp/kubectl | ||
- name: Build and install kube-burner binary. | ||
run: | | ||
make build | ||
cp bin/ppc64le/kube-burner /tmp | ||
- name: Build container images | ||
run: make images | ||
env: | ||
VERSION: snapshot | ||
|
||
- name: Execute tests | ||
run: | | ||
export PATH=${PATH}:/tmp/ | ||
make test-k8s | ||
env: | ||
TERM: linux | ||
|
||
- name: Clean up | ||
run: | | ||
rm -rf ${{ github.workspace }}/* | ||
rm -rf /tmp/tmp* | ||
rm /tmp/kube-burner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters