From d044dc780f50a4db3a284569d12be011f809dde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Mon, 19 Aug 2024 03:12:50 +0200 Subject: [PATCH] build-lxd.yml: Use compatible repository versions to run tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> --- .github/workflows/build-lxd.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-lxd.yml b/.github/workflows/build-lxd.yml index 00f18edd2..daf4ebe54 100644 --- a/.github/workflows/build-lxd.yml +++ b/.github/workflows/build-lxd.yml @@ -362,7 +362,7 @@ jobs: - name: Checkout code uses: actions/checkout@v3 with: - ref: "${{ env.VERSION }}" + ref: "v1.54.3" - name: Setup Firefox continue-on-error: true id: setup-firefox-browser-action @@ -422,7 +422,7 @@ jobs: sudo "$LXC" exec ncp -- "tail -n20 /var/log/ncp.log" || true exit 1 } - python nextcloud_tests.py --no-gui --skip-release-check "nextcloudpi.local" 443 4443 || { + python nextcloud_tests.py --no-gui "nextcloudpi.local" 443 4443 || { echo "Nextcloud test failed!" echo "Geckodriver logs:" tail -n 20 geckodriver.log >&2 || true @@ -547,6 +547,10 @@ jobs: ip="${ip/% *}" sudo sed -i 's/^.*nextcloudpi.local.*$//g' /etc/hosts echo "${ip} nextcloudpi.local" | sudo tee -a /etc/hosts + - name: Checkout current version + run: | + git fetch origin + git checkout "${{ env.VERSION }}" - name: Test LXD Image working-directory: ./tests run: |