Skip to content

Commit

Permalink
e
Browse files Browse the repository at this point in the history
  • Loading branch information
moduli committed Jan 10, 2025
1 parent 17b39e7 commit d809563
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions .github/workflows/test-e2e-desktop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
ENOS_VAR_e2e_debug_no_run: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
id: node-modules-cache
Expand All @@ -49,17 +51,20 @@ jobs:

- name: Set up Enos
uses: hashicorp/action-setup-enos@b9fa53484a1e8fdcc7b02a118bcf01d65b9414c9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20

- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ inputs.go-version }}
cache: false
# !! might not need this
# - name: Set up Go
# uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
# with:
# go-version: ${{ inputs.go-version }}
# cache: false

- name: Install Vault CLI
run: |
Expand Down Expand Up @@ -94,31 +99,47 @@ jobs:
cat /etc/hosts
ssh -V
echo "127.0.0.1 localhost boundary" | sudo tee -a /etc/hosts
echo "127.0.0.1 localhost worker" | sudo tee -a /etc/hosts
echo "127.0.0.1 localhost vault" | sudo tee -a /etc/hosts
- name: Get Boundary docker image
run: |
docker pull hashicorp/boundary:latest
docker save hashicorp/boundary:latest | gzip > /tmp/boundary.zip
- name: Set up test infra
id: infra
run: |
ssh-keygen -N '' -t ed25519 -f ~/.ssh/github_enos
mkdir -p ./enos/terraform-plugin-cache
export ENOS_VAR_enos_user=$GITHUB_ACTOR && \
export ENOS_VAR_aws_ssh_private_key_path=~/.ssh/github_enos && \
export GOOS=linux && \
export GOARCH=amd64 && \
export DEV_DOCKER_GOARCH=amd64 && \
enos scenario launch --timeout 60m0s --chdir ./support/src/boundary/enos e2e_ui_docker builder:local
export ENOS_VAR_boundary_docker_image_name=hashicorp/boundary:latest && \
export ENOS_VAR_boundary_docker_image_file=/tmp/boundary.zip && \
enos scenario launch --timeout 60m0s --chdir ./support/src/boundary/enos e2e_ui_docker builder:crt
- name: Install dependencies
run: |
yarn install
cd e2e-tests
yarn playwright install --with-deps
# Issue with Ubuntu 24.04 causing issues with using sandboxes
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: Run Tests
run: |
bash ./support/src/boundary/enos/scripts/test_e2e_env.sh
source <(. ./support/src/boundary/enos/scripts/test_e2e_env.sh)
source <(bash ./support/src/boundary/enos/scripts/test_e2e_env.sh)
cd e2e-tests
yarn run desktop
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- DEBUG=pw:browser* yarn run desktop
- name: Clean up test infra
if: ${{ always() }}
run: |
export ENOS_VAR_enos_user=$GITHUB_ACTOR && \
export ENOS_VAR_aws_ssh_private_key_path=~/.ssh/github_enos && \
enos scenario destroy --timeout 60m0s --chdir ./support/src/boundary/enos e2e_ui_docker builder:local
enos scenario destroy --timeout 60m0s --chdir ./support/src/boundary/enos e2e_ui_docker builder:crt
# Log files?
Expand Down

0 comments on commit d809563

Please sign in to comment.