Skip to content

Application Specific Test - Install #13

Application Specific Test - Install

Application Specific Test - Install #13

name: Application Specific Test - Install
on:
workflow_dispatch:
inputs:
apps:
description: 'The ginkgo label filter query of kommander applications to test, e.g. reloader, or reloader || cert-manager'
required: true
type: string
version_ref:
description: 'The NKP version(git branch or tag) to run install/upgrade test. Using latest version by default e.g., v2.8.0-dev'
default: 'main'
type: string
workflow_call:
inputs:
apps:
description: 'The ginkgo label filter query of kommander applications to test, e.g. reloader, or reloader || cert-manager'
required: true
type: string
version_ref:
description: 'The NKP version(git branch or tag) to run install/upgrade test. Using latest version by default e.g., v2.8.0-dev'
required: true
type: string
jobs:
run-test-scenario:
runs-on:
- ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.version_ref }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'apptests/go.mod'
- name: Install Ginkgo
working-directory: apptests
run: go install github.com/onsi/ginkgo/v2/ginkgo
- name: Run install Test
working-directory: apptests
env:
SKIP_CLUSTER_TEARDOWN: "true"
run: |
ginkgo --v --label-filter="install && (${{ inputs.apps }})" appscenarios
- name: Gather support bundle
if: failure()
working-directory: apptests
run: |
curl -L https://github.com/replicatedhq/troubleshoot/releases/latest/download/support-bundle_linux_amd64.tar.gz | tar xzvf -
./support-bundle --interactive=false --output=support-bundle.tar.gz support-bundle.yaml
- name: Upload support bundle
if: failure()
uses: actions/upload-artifact@v4
with:
name: support-bundle-${{ inputs.apps }}-install
path: apptests/support-bundle.tar.gz