Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(ci): specify workflow runner for integration tests #210

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/_charm-quality-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/_charm-tests-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/bundle-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
It can be either a subnet(IP/mask) or a range (<IP1>-<IP2>)
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
Expand Down Expand Up @@ -87,3 +91,4 @@ jobs:
charm-path: "${{ inputs.bundle-path }}"
provider: "${{ inputs.provider }}"
ip-range: ${{ inputs.ip-range }}
workflow-runner: '${{ inputs.workflow-runner }}'
5 changes: 5 additions & 0 deletions .github/workflows/charm-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -75,3 +79,4 @@ jobs:
provider: ${{ inputs.provider }}
ip-range: ${{ inputs.ip-range }}
charmcraft-channel: ${{ inputs.charmcraft-channel }}
workflow-runner: '${{ inputs.workflow-runner }}'
Loading