build(deps): bump actions/checkout from 3 to 4 (#23) #67
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: Integration | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
# TODO: add integration tests for snapcraft, charmcraft, etc | |
juju: | |
name: Juju | |
runs-on: ubuntu-${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
channel: | |
- { juju: '2.9', lxd: 5.21/edge } | |
- { juju: '3', lxd: latest/edge } | |
os: | |
- 22.04 | |
- 24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup LXD | |
uses: ./ | |
with: | |
channel: ${{ matrix.channel.lxd }} | |
- name: Install Juju 2.9 (${{ matrix.os }}) | |
if: matrix.channel.juju == '2.9' | |
run: | | |
sudo snap install juju --classic --channel=2.9/stable | |
- name: Install Juju 3 (${{ matrix.os }}) | |
if: matrix.channel.juju == '3' | |
run: | | |
sudo snap install juju --channel=3/stable | |
mkdir -p ~/.local/share | |
mkdir -p ~/.ssh | |
sudo snap connect juju:ssh-keys | |
- name: Bootstrap | |
run: | | |
set -x | |
juju bootstrap lxd c | |
juju switch controller | |
juju status |