From f3c0215cdc44278d410ed8def64237a37b3c1a92 Mon Sep 17 00:00:00 2001 From: Jordan Barrett Date: Fri, 12 May 2023 12:08:58 +1000 Subject: [PATCH] [CI] Add test which uses latest/stable --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8270157..7b491f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: