Skip to content

Tweak CI tests

Tweak CI tests #51

Workflow file for this run

name: Integration
on: [push, pull_request, workflow_dispatch]
jobs:
# TODO: add integration tests for snapcraft, charmcraft, etc
juju:
name: Juju
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
channel:
- { juju: '2.9', lxd: 5.21/edge }
- { juju: '3', lxd: latest/edge }
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup LXD
uses: ./
with:
channel: ${{ matrix.channel.lxd }}
- name: Install Juju 2.9
if: matrix.channel.juju == '2.9'
run: |
sudo snap install juju --classic --channel=2.9/stable
- name: Install Juju 3
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