Skip to content

Commit

Permalink
chore(ci) download artifacts instead of rebuilding lxd for e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Nov 13, 2024
1 parent 6f73c2c commit 29fc92e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ jobs:
ui:
name: UI e2e tests
runs-on: ubuntu-latest
needs: code-tests
if: "!startsWith(github.ref, 'refs/heads/stable-')"

steps:
Expand Down Expand Up @@ -578,15 +579,18 @@ jobs:
curl -sSfL https://dl.min.io/client/mc/release/linux-amd64/mc --output "$(go env GOPATH)/bin/mc"
chmod +x "$(go env GOPATH)/bin/mc"
- name: Download go dependencies
run: |
set -eux
go mod download
- name: Download system test dependencies
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: system-test-deps
merge-multiple: true
path: /home/runner/go/bin

- name: Run LXD build
- name: Set exec perms on LXD binaries
run: |
set -eux
make lxd
ls -lR /home/runner/go/bin/
chmod uog+x /home/runner/go/bin/*
- name: Install doc dependencies
run: |
Expand Down Expand Up @@ -694,11 +698,11 @@ jobs:
cd lxd-ui
npx playwright install --with-deps chromium
- name: Create OIDC users
- name: Setup for LXD-UI tests
shell: bash
run: |
set -eux
sudo LXD_DIR=/var/lib/lxd PATH=/home/runner/go/bin:$PATH ./lxd-ui/tests/scripts/create_oidc_identities
sudo LXD_DIR=/var/lib/lxd PATH=/home/runner/go/bin:$PATH ./lxd-ui/tests/scripts/setup_test
- name: Run Playwright tests
run: |
Expand Down

0 comments on commit 29fc92e

Please sign in to comment.