-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (40 loc) · 1.06 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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@v3
- 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