2022-05-03 05:15:53 -04:00
|
|
|
name: sonobuoy
|
|
|
|
description: "Executed the e2e test framework sonobuoy."
|
|
|
|
inputs:
|
|
|
|
sonobuoyVersion:
|
2022-08-02 09:34:17 -04:00
|
|
|
description: "Version of sonobuoy test CLI to use."
|
2022-09-14 10:12:28 -04:00
|
|
|
default: "0.56.10"
|
2022-05-03 05:15:53 -04:00
|
|
|
required: true
|
|
|
|
sonobuoyTestSuiteCmd:
|
2022-08-02 09:34:17 -04:00
|
|
|
description: "Which tests should be run?"
|
2022-05-03 05:15:53 -04:00
|
|
|
required: true
|
|
|
|
runs:
|
2022-08-02 09:34:17 -04:00
|
|
|
using: "composite"
|
2022-05-03 05:15:53 -04:00
|
|
|
steps:
|
2022-08-02 09:34:17 -04:00
|
|
|
- name: Install sonobuoy
|
|
|
|
run: |
|
2022-09-14 10:30:13 -04:00
|
|
|
HOSTOS="$(go env GOOS)"
|
|
|
|
HOSTARCH="$(go env GOARCH)"
|
|
|
|
curl -sLO https://github.com/vmware-tanzu/sonobuoy/releases/download/v${{ inputs.sonobuoyVersion }}/sonobuoy_${{ inputs.sonobuoyVersion }}_${HOSTOS}_${HOSTARCH}.tar.gz
|
|
|
|
tar -xzf sonobuoy_${{ inputs.sonobuoyVersion }}_${HOSTOS}_${HOSTARCH}.tar.gz
|
2022-08-02 09:34:17 -04:00
|
|
|
install sonobuoy /usr/local/bin
|
|
|
|
shell: bash
|
|
|
|
- name: Sonobuoy version
|
|
|
|
run: sonobuoy version
|
|
|
|
shell: bash
|
2022-05-03 05:15:53 -04:00
|
|
|
|
2022-08-02 09:34:17 -04:00
|
|
|
- name: Run quick e2e test
|
|
|
|
run: sonobuoy run --wait=300 ${{ inputs.sonobuoyTestSuiteCmd }} --kubeconfig constellation-admin.conf
|
|
|
|
shell: bash
|
|
|
|
- name: Download results
|
|
|
|
run: sonobuoy retrieve -x --kubeconfig constellation-admin.conf
|
|
|
|
shell: bash
|
|
|
|
- name: Upload test results
|
|
|
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
|
|
|
|
with:
|
|
|
|
name: "junit_01.xml"
|
|
|
|
path: "**/junit_01.xml"
|
|
|
|
if: ${{ always() && !env.ACT }}
|
|
|
|
- name: Publish test results
|
|
|
|
uses: mikepenz/action-junit-report@1b47bb811362f3d8d753fc148cb7a13ec9e55570
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
with:
|
|
|
|
report_paths: "**/junit_01.xml"
|
|
|
|
fail_on_failure: true
|