feat: Drop focal support from etcd #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Charmed Kubernetes Integration Tests | |
on: | |
- pull_request | |
jobs: | |
integration-test: | |
name: Integration test | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 360 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- id: charmcraft | |
run: echo "channel=$(cat .charmcraft-channel)" >> $GITHUB_OUTPUT | |
- name: Setup operator environment | |
uses: charmed-kubernetes/actions-operator@main | |
with: | |
provider: lxd | |
juju-channel: 3/stable | |
charm-channel: 3.x/stable | |
charmcraft-channel: ${{ steps.charmcraft.outputs.channel }} | |
bootstrap-options: "[email protected]" | |
- name: Run test | |
run: tox -e integration | |
- name: Setup Debug Artifact Collection | |
if: ${{ failure() }} | |
run: mkdir tmp | |
- name: Collect Juju Status | |
if: ${{ failure() }} | |
run: | | |
cat $HOME/.local/state/charmcraft/log/*.log | tee tmp/charmcraft.log | |
juju status 2>&1 | tee tmp/juju-status.txt | |
juju-crashdump -s -m controller -a debug-layer -a config -o tmp/ | |
mv juju-crashdump-* tmp/ | true | |
- name: Upload debug artifacts | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-run-artifacts | |
path: tmp |