Move UI tests before docker image build to reduce time-to-failure

This commit is contained in:
GCHQDeveloper581 2026-04-18 09:58:31 +00:00
parent beaec4e8dd
commit dc6a3454b1
No known key found for this signature in database
GPG Key ID: 6222E059A3DF595C

View File

@ -37,7 +37,14 @@ jobs:
if: success()
run: npx grunt prod
- name: UI Tests
if: success()
run: |
sudo apt-get install xvfb
xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
- name: Set up Docker Buildx
if: success()
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
@ -49,8 +56,3 @@ jobs:
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
- name: UI Tests
if: success()
run: |
sudo apt-get install xvfb
xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui