Skip to content

Commit e586296

Browse files
committed
Speed up public e2e startup
1 parent 23e471f commit e586296

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/server-test.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ jobs:
7777
uses: actions/setup-go@v5
7878
with:
7979
go-version-file: "server/go.mod"
80-
cache: false
80+
cache: true
81+
cache-dependency-path: server/go.sum
8182

8283
- name: Compute short SHA for images
8384
id: vars
@@ -90,6 +91,23 @@ jobs:
9091
username: ${{ vars.DOCKERHUB_USERNAME }}
9192
password: ${{ secrets.DOCKERHUB_TOKEN }}
9293

94+
- name: Pull e2e images
95+
shell: bash
96+
run: |
97+
set -euo pipefail
98+
99+
docker pull "$E2E_CHROMIUM_HEADFUL_IMAGE" &
100+
headful_pid=$!
101+
102+
docker pull "$E2E_CHROMIUM_HEADLESS_IMAGE" &
103+
headless_pid=$!
104+
105+
wait "$headful_pid"
106+
wait "$headless_pid"
107+
env:
108+
E2E_CHROMIUM_HEADFUL_IMAGE: onkernel/chromium-headful:${{ steps.vars.outputs.short_sha }}
109+
E2E_CHROMIUM_HEADLESS_IMAGE: onkernel/chromium-headless:${{ steps.vars.outputs.short_sha }}
110+
93111
- name: Run server e2e tests
94112
run: make test-e2e
95113
working-directory: server

0 commit comments

Comments
 (0)