Skip to content

Commit

Permalink
workflow: Add microk8s-version and juju-version inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
orfeas-k committed Nov 16, 2023
1 parent d52e3ad commit e71ff75
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/full-bundle-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ on:
description: 'Either `--channel <channel_name>` or `--file <bundle_file>.yaml`'
required: true
uats-branch:
description: Branch to checkout at for charmed-kubeflow-uats repo
description: Branch to run the UATs from e.g. main or track/1.7
required: false
default: main
microk8s-version:
description: Branch to checkout at for charmed-kubeflow-uats repo
required: false
default: "1.25-strict/stable"
juju-version:
description: Branch to checkout at for charmed-kubeflow-uats repo
required: false
default: "3.1/stable"
workflow_call:
inputs:
bundle-test-path:
Expand All @@ -24,10 +32,20 @@ on:
type: string
required: true
uats-branch:
description: Branch to checkout at for charmed-kubeflow-uats repo
description: Branch to run the UATs from e.g. main or track/1.7
required: false
type: string
default: main
microk8s-version:
description: Branch to checkout at for charmed-kubeflow-uats repo
required: false
type: string
default: "1.25-strict/stable"
juju-version:
description: Branch to checkout at for charmed-kubeflow-uats repo
required: false
type: string
default: "3.1/stable"

jobs:
test-bundle:
Expand Down Expand Up @@ -93,14 +111,14 @@ jobs:
run: |
eval "$(pyenv init -)"
pip install tox
sudo snap install kubectl --channel 1.24/stable --classic
sudo snap install kubectl --classic
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: 1.24/stable
juju-channel: 2.9/stable
channel: ${{ inputs.microk8s-version }}
juju-channel: ${{ inputs.juju-version }}
charmcraft-channel: latest/candidate
microk8s-addons: ${{ steps.dns-name.outputs.MY_ADDONS }}

Expand Down

0 comments on commit e71ff75

Please sign in to comment.