27
27
cache : npm
28
28
cache-dependency-path : test/e2e/package-lock.json
29
29
30
- - name : Create Python venv and install dependencies
30
+ - name : Install Python dependencies
31
31
working-directory : test/e2e
32
- run : |
33
- python -m venv .venv
34
- source .venv/bin/activate
35
- pip install -r requirements.txt
36
- echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
37
- echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
32
+ run : pip install -r requirements.txt
38
33
39
34
- name : Install npm dependencies
40
35
working-directory : test/e2e
@@ -47,16 +42,31 @@ jobs:
47
42
48
43
- name : Build Docker images
49
44
run : |
50
- source test/e2e/.venv/bin/activate
45
+ # Start a local registry
46
+ docker run -d -p 5000:5000 --restart=always --name registry registry:2
47
+
48
+ # Change to test/e2e to build e2ebase
51
49
cd test/e2e
52
- just build-images
50
+ docker build -f Dockerfile.base --tag e2ebase --platform linux/amd64 .
51
+
52
+ # Tag with local registry and push
53
+ docker tag e2ebase localhost:5000/e2ebase
54
+ docker push localhost:5000/e2ebase
55
+
56
+ # Update Dockerfiles to use the local registry
57
+ sed -i 's/FROM --platform=$BUILDPLATFORM e2ebase/FROM --platform=$BUILDPLATFORM localhost:5000\/e2ebase/' Dockerfile.connect
58
+ sed -i 's/FROM --platform=$BUILDPLATFORM e2ebase/FROM --platform=$BUILDPLATFORM localhost:5000\/e2ebase/' Dockerfile.vscode
59
+
60
+ # Go back to repo root for docker compose build
61
+ cd ../..
62
+ docker compose -f test/e2e/docker-compose.yml build connect-publisher-e2e
63
+ docker compose -f test/e2e/docker-compose.yml build code-server
53
64
env :
54
65
CONNECT_LICENSE : ${{ secrets.CONNECT_LICENSE }}
55
66
56
67
- name : Run Cypress tests
57
68
working-directory : test/e2e
58
69
run : |
59
- source .venv/bin/activate
60
70
just start "connect-publisher-e2e"
61
71
just start "code-server"
62
72
npx cypress run
83
93
- name : Stop containers
84
94
if : always()
85
95
working-directory : test/e2e
86
- run : |
87
- source .venv/bin/activate
88
- just stop
96
+ run : just stop
0 commit comments