Skip to content

Commit

Permalink
Merge pull request #9 from canonical/test-latest
Browse files Browse the repository at this point in the history
[CI] Add test which installs LXD from latest/stable
  • Loading branch information
barrettj12 committed May 12, 2023
2 parents af495f2 + f3c0215 commit 4e959f8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,31 @@ jobs:
- name: Launch container
run: |
lxc launch ubuntu:
latest-stable:
name: Install latest/stable
runs-on: ubuntu-latest
steps:

- name: Install dependencies
run: |
sudo snap install yq
- name: Checkout code
uses: actions/checkout@v3

- name: Setup LXD
uses: ./
with:
channel: latest/stable

- name: Check LXD version
shell: bash
run: |
set -eux
LATEST_STABLE_VERSION=$(snap info lxd | yq '.channels.latest/stable' | awk -F'-' '{print $1}')
[[ $(lxd version) == $LATEST_STABLE_VERSION ]]
- name: Launch container
run: |
lxc launch ubuntu:

0 comments on commit 4e959f8

Please sign in to comment.