mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
7ee8f65889
* Delete microserivce template. * Remove dependabot config * Prepare renovate by adopting GitHub actions syntax Signed-off-by: Fabian Kammel <fk@edgeless.systems>
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
name: sonobuoy
|
|
description: "Executed the e2e test framework sonobuoy."
|
|
inputs:
|
|
sonobuoyVersion:
|
|
description: "Version of sonobuoy test CLI to use."
|
|
default: "0.56.10"
|
|
required: true
|
|
sonobuoyTestSuiteCmd:
|
|
description: "Which tests should be run?"
|
|
required: true
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install sonobuoy
|
|
run: |
|
|
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
|
|
install sonobuoy /usr/local/bin
|
|
shell: bash
|
|
- name: Sonobuoy version
|
|
run: sonobuoy version
|
|
shell: bash
|
|
|
|
- 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 # tag=v3.1.0
|
|
with:
|
|
name: "junit_01.xml"
|
|
path: "**/junit_01.xml"
|
|
if: ${{ always() && !env.ACT }}
|
|
- name: Publish test results
|
|
uses: mikepenz/action-junit-report@9d7e8d109968bf1cd319822043687171efae7de7 # tag=v3.5.1
|
|
if: ${{ !env.ACT }}
|
|
with:
|
|
report_paths: "**/junit_01.xml"
|
|
fail_on_failure: true
|