Application Specific Test - Install #1
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
name: Application Specific Test - Install | |
on: | |
workflow_dispatch: | |
inputs: | |
app: | |
description: 'The kommander application to test, e.g. reloader,kube-prometheus-stack' | |
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: | |
app: | |
description: 'The kommander application to test, e.g. reloader,kube-prometheus-stack' | |
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 ${{ github.event.inputs.app }} install Test | |
working-directory: apptests | |
run: | | |
ginkgo --label-filter="install && ${{ inputs.app }}" appscenarios |