Skip to content

Commit

Permalink
chore(ci) fix e2e test workflow for lxd-ui, need all run deps for lxd
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Nov 21, 2024
1 parent 5a3337c commit 58ba9f6
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ jobs:
tics:
name: Tiobe TICS
runs-on: ubuntu-22.04
needs: system-tests
needs: [system-tests, ui-e2e-tests]
env:
CGO_CFLAGS: "-I/home/runner/go/bin/dqlite/include/"
CGO_LDFLAGS: "-L/home/runner/go/bin/dqlite/libs/"
Expand Down Expand Up @@ -445,7 +445,7 @@ jobs:
name: lxd-clients-${{ runner.os }}
path: bin/

ui:
ui-e2e-tests:
name: UI e2e tests
runs-on: ubuntu-latest
needs: [code-tests, documentation]
Expand All @@ -470,8 +470,8 @@ jobs:
with:
go-version-file: 'go.mod'

- name: Install dependencies
uses: ./.github/actions/install-lxd-builddeps
- name: Install runtime dependencies
uses: ./.github/actions/install-lxd-runtimedeps

- name: Download minio/mc to add to system test dependencies
uses: ./.github/actions/download-minio
Expand All @@ -496,6 +496,12 @@ jobs:
merge-multiple: true
path: doc/_build

- name: Make GOCOVERDIR
run: |
set -eux
mkdir -p "${GOCOVERDIR}"
if: env.GOCOVERDIR != ''

- name: Run LXD daemon
run: |
set -eux
Expand Down Expand Up @@ -585,6 +591,13 @@ jobs:
path: lxd-ui/blob-report
retention-days: 14

- name: Upload coverage data
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: coverage-ui-e2e-tests
path: ${{env.GOCOVERDIR}}
if: env.GOCOVERDIR != ''

documentation:
name: Documentation
runs-on: ubuntu-latest
Expand Down

0 comments on commit 58ba9f6

Please sign in to comment.