Skip to content

Commit

Permalink
fix: pinn to ubuntu-20.04 for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
misohu committed Dec 7, 2022
1 parent 2065a9b commit a5eadaf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

lib-check:
name: Check libraries
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
charm:
Expand All @@ -31,7 +31,7 @@ jobs:

unit:
name: Unit Test
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
charm: [controller, ui]
Expand All @@ -43,7 +43,7 @@ jobs:

charm-integration:
name: Individual charm's integration tests
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
charm: [controller]
Expand All @@ -61,7 +61,7 @@ jobs:

lint:
name: Lint Code
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
charm: [controller, ui]
Expand All @@ -73,15 +73,21 @@ jobs:

bundle-integration:
name: Bundle Integration
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
# TODO: Unpin this when https://github.com/charmed-kubernetes/actions-operator/pull/46 is merged
uses: claudiubelu/actions-operator@18ebf92ae3043bd3dd15238e5d9b662d7ba08daf
with:
provider: microk8s
channel: 1.21/stable
provider: microk8s
channel: 1.22/stable
charmcraft-channel: latest/candidate
# TODO: Unpin this when this bug is resolved: https://bugs.launchpad.net/juju/+bug/1992833.
# In particular, these tests failed deploying the prometheus-k8s charm where it gets an error in
# the "metrics-endpoint-relation-changed" hook.
bootstrap-options: --agent-version="2.9.34"

# TODO: Remove once the actions-operator does this automatically
- name: Configure kubectl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
jobs:
get-charm-paths:
name: Generate the Charm Matrix
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
charm_paths_list: ${{ steps.get-charm-paths.outputs.CHARM_PATHS_LIST }}
steps:
Expand All @@ -43,7 +43,7 @@ jobs:

publish-charm:
name: Publish Charm
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: get-charm-paths
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
promote-charm:
name: Promote charm
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Release charm to channel
Expand Down

0 comments on commit a5eadaf

Please sign in to comment.