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

ci: update workflows directory #45

Closed
wants to merge 1 commit into from
Closed
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
15 changes: 4 additions & 11 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
fetch-depth: 0
- name: Check libs
uses: canonical/charming-actions/check-libraries@2.1.1
uses: canonical/charming-actions/check-libraries@2.3.0
with:
credentials: "${{ secrets.charmcraft-credentials }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down Expand Up @@ -61,20 +61,13 @@ jobs:
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: 1.24/stable
channel: 1.29-strict/stable
juju-channel: 3.4/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
run: |
sg microk8s -c "microk8s config > ~/.kube/config"

- name: Run test
run: |
sg microk8s -c "tox -e integration -- --model testing"
sg snap_microk8s -c "tox -e integration -- --model testing"

- name: Get all
run: kubectl get all -A
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
ref: ${{ inputs.source_branch }}

- name: Select charmhub channel
uses: canonical/charming-actions/channel@2.1.1
uses: canonical/charming-actions/channel@2.3.0
id: select-channel
if: ${{ inputs.destination_channel == '' }}

Expand All @@ -84,10 +84,11 @@ jobs:
echo "::set-output name=tag_prefix::$tag_prefix"

- name: Upload charm to charmhub
uses: canonical/charming-actions/upload-charm@2.1.1
uses: canonical/charming-actions/upload-charm@2.6.2
with:
credentials: ${{ secrets.CHARMCRAFT_CREDENTIALS }}
github-token: ${{ secrets.GITHUB_TOKEN }}
charm-path: ${{ matrix.charm-path }}
channel: ${{ steps.parse-inputs.outputs.destination_channel }}
tag-prefix: ${{ steps.parse-inputs.outputs.tag_prefix }}
charmcraft-channel: latest/candidate
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Release charm to channel
uses: canonical/charming-actions/release-charm@2.1.1
uses: canonical/charming-actions/release-charm@2.3.0
with:
credentials: ${{ secrets.CHARMCRAFT_CREDENTIALS }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading