-
Notifications
You must be signed in to change notification settings - Fork 931
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci) set environment variables for e2e tests
Signed-off-by: David Edler <[email protected]>
- Loading branch information
Showing
1 changed file
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -499,7 +499,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: [code-tests, documentation] | ||
if: "!startsWith(github.ref, 'refs/heads/stable-')" | ||
|
||
env: | ||
LXD_DIR: "/var/lib/lxd" | ||
LXD_OIDC_CLIENT_ID: "gxj297yfAjmklILK5WqPWDSbtVBAeSQm" | ||
LXD_OIDC_ISSUER: "https://dev-xjrvvfikbsv4jxn7.us.auth0.com/" | ||
LXD_OIDC_AUDIENCE: "https://dev-xjrvvfikbsv4jxn7.us.auth0.com/api/v2/" | ||
LXD_OIDC_USER: "[email protected]" | ||
LXD_OIDC_PASSWORD: "lxd-ui-e2e-password" | ||
LXD_OIDC_GROUPS_CLAIM: "lxd-idp-groups" | ||
PATH: "/home/runner/go/bin:$PATH" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
@@ -614,14 +622,14 @@ jobs: | |
shell: bash | ||
run: | | ||
set -eux | ||
sudo LXD_DIR=/var/lib/lxd lxc storage create local-storage zfs | ||
sudo LXD_DIR=/var/lib/lxd lxc profile device add default root disk path=/ pool=local-storage | ||
sudo LXD_DIR=/var/lib/lxd lxc network create local-network | ||
sudo LXD_DIR=/var/lib/lxd lxc profile device add default eth0 nic network=local-network | ||
sudo LXD_DIR=/var/lib/lxd lxc config set core.https_address "[::]:8443" | ||
sudo LXD_DIR=/var/lib/lxd lxc config set cluster.https_address "127.0.0.1" | ||
sudo LXD_DIR=/var/lib/lxd lxc cluster enable local | ||
sudo LXD_DIR=/var/lib/lxd lxc config set user.show_permissions=true | ||
sudo -E lxc storage create local-storage zfs | ||
sudo -E lxc profile device add default root disk path=/ pool=local-storage | ||
sudo -E lxc network create local-network | ||
sudo -E lxc profile device add default eth0 nic network=local-network | ||
sudo -E lxc config set core.https_address "[::]:8443" | ||
sudo -E lxc config set cluster.https_address "127.0.0.1" | ||
sudo -E lxc cluster enable local | ||
sudo -E lxc config set user.show_permissions=true | ||
- name: Checkout LXD-UI | ||
uses: actions/checkout@v4 | ||
|
@@ -673,15 +681,15 @@ jobs: | |
shell: bash | ||
run: | | ||
set -eux | ||
sudo LXD_DIR=/var/lib/lxd lxc config trust add lxd-ui/keys/lxd-ui.crt | ||
sudo -E lxc config trust add lxd-ui/keys/lxd-ui.crt | ||
- name: Create a custom image | ||
shell: bash | ||
run: | | ||
set -eux | ||
sudo LXD_DIR=/var/lib/lxd lxc launch ubuntu-minimal:22.04 my-instance | ||
sudo LXD_DIR=/var/lib/lxd lxc publish my-instance --alias my-custom-image --force | ||
sudo LXD_DIR=/var/lib/lxd lxc delete my-instance --force | ||
sudo -E lxc launch ubuntu-minimal:22.04 my-instance | ||
sudo -E lxc publish my-instance --alias my-custom-image --force | ||
sudo -E lxc delete my-instance --force | ||
- uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -697,7 +705,7 @@ jobs: | |
shell: bash | ||
run: | | ||
set -eux | ||
sudo LXD_DIR=/var/lib/lxd PATH=/home/runner/go/bin:$PATH ./lxd-ui/tests/scripts/setup_test | ||
sudo -E ./lxd-ui/tests/scripts/setup_test | ||
- name: Run Playwright tests | ||
run: | | ||
|