diff --git a/.github/workflows/_charm-quality-checks.yaml b/.github/workflows/_charm-quality-checks.yaml index 2835693..309cbf7 100644 --- a/.github/workflows/_charm-quality-checks.yaml +++ b/.github/workflows/_charm-quality-checks.yaml @@ -23,6 +23,10 @@ on: required: false description: | The snap channel from which to install Charmcraft. + workflow-runner: + type: string + description: The runner type to use for integration tests. + default: '["ubuntu-latest"]' secrets: CHARMHUB_TOKEN: required: false @@ -95,6 +99,7 @@ jobs: provider: "${{ inputs.provider }}" ip-range: ${{ inputs.ip-range }} charmcraft-channel: ${{ inputs.charmcraft-channel }} + workflow-runner: '${{ inputs.workflow-runner }}' codeql: name: CodeQL analysis needs: diff --git a/.github/workflows/_charm-tests-integration.yaml b/.github/workflows/_charm-tests-integration.yaml index 1a07b29..c991deb 100644 --- a/.github/workflows/_charm-tests-integration.yaml +++ b/.github/workflows/_charm-tests-integration.yaml @@ -23,6 +23,10 @@ on: required: false description: | The snap channel from which to install Charmcraft. + workflow-runner: + type: string + description: The runner type to use for integration tests. + default: '["ubuntu-latest"]' # Default to bash defaults: run: @@ -31,7 +35,7 @@ defaults: jobs: integration-test: name: Integration Tests - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(inputs.workflow-runner) }} steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/bundle-pull-request.yaml b/.github/workflows/bundle-pull-request.yaml index c4a7050..0899e54 100644 --- a/.github/workflows/bundle-pull-request.yaml +++ b/.github/workflows/bundle-pull-request.yaml @@ -20,6 +20,10 @@ on: It can be either a subnet(IP/mask) or a range (-) required: false default: null + workflow-runner: + type: string + description: The runner type to use for integration tests. + default: '["ubuntu-latest"]' secrets: CHARMHUB_TOKEN: required: false @@ -87,3 +91,4 @@ jobs: charm-path: "${{ inputs.bundle-path }}" provider: "${{ inputs.provider }}" ip-range: ${{ inputs.ip-range }} + workflow-runner: '${{ inputs.workflow-runner }}' diff --git a/.github/workflows/charm-pull-request.yaml b/.github/workflows/charm-pull-request.yaml index 5986207..b4286ea 100644 --- a/.github/workflows/charm-pull-request.yaml +++ b/.github/workflows/charm-pull-request.yaml @@ -26,6 +26,10 @@ on: required: false description: | The snap channel from which to install Charmcraft. + workflow-runner: + type: string + description: The runner type to use for integration tests. + default: '["ubuntu-latest"]' secrets: CHARMHUB_TOKEN: required: false @@ -75,3 +79,4 @@ jobs: provider: ${{ inputs.provider }} ip-range: ${{ inputs.ip-range }} charmcraft-channel: ${{ inputs.charmcraft-channel }} + workflow-runner: '${{ inputs.workflow-runner }}'