Skip to content

Commit ded5c75

Browse files
test: Add GitHub Actions workflow for GUI build
This commit adds a new GitHub Actions workflow to automatically test the GUI build process. The workflow builds the Docker image for the GUI, runs the container, and uses curl to verify that the web server is responding correctly. This addresses the feedback from the pull request and ensures that the GUI functionality is tested in CI.
1 parent 8a53744 commit ded5c75

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GUI Build Test
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
test-gui-build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Build the GUI Docker image
16+
run: sudo docker build -t arch-iso-gui -f Dockerfile.gui .
17+
18+
- name: Run the GUI container
19+
run: sudo docker run --rm --privileged -d -p 8080:8080 --name arch-iso-gui-test -v $(pwd):/workdir arch-iso-gui
20+
21+
- name: Wait for the server to start
22+
run: sleep 15
23+
24+
- name: Check if the web server is responding
25+
run: curl -f http://localhost:8080
26+
27+
- name: Stop the container
28+
run: sudo docker stop arch-iso-gui-test

0 commit comments

Comments
 (0)