File tree Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,31 @@ jobs:
127
127
$f || exit 1
128
128
done
129
129
130
+ - name : Clean up the database
131
+ run : docker-compose down --volumes
132
+
133
+ GUIs_test :
134
+ runs-on : ubuntu-latest
135
+ needs : build
136
+ steps :
137
+ - uses : actions/checkout@v4
138
+
139
+ - name : get test binaries from cache
140
+ uses : actions/download-artifact@v3
141
+ with :
142
+ name : test-binaries-${{ github.sha }}
143
+ path : ./test-binaries/
144
+
145
+ - name : Launch postgres and min.io
146
+ run : |
147
+ cp .env.sample .env
148
+ mkdir -p ${DOCSRS_PREFIX}/public-html
149
+ docker-compose up -d db s3
150
+ # Give the database enough time to start up
151
+ sleep 5
152
+ # Make sure the database is actually working
153
+ psql "${DOCSRS_DATABASE_URL}"
154
+
130
155
- name : Run GUI tests
131
156
run : ./dockerfiles/run-gui-tests.sh
132
157
Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ docker-compose up -d db s3
7
7
8
8
# We add the information we need.
9
9
cargo run -- database migrate
10
- docker-compose run web build crate sysinfo 0.23.4
11
- docker-compose run web build crate sysinfo 0.23.5
12
- docker-compose run web build add-essential-files
13
- docker-compose build web
10
+ cargo run -- build crate sysinfo 0.23.4
11
+ cargo run -- build crate sysinfo 0.23.5
12
+ cargo run -- build add-essential-files
14
13
15
14
# In case we don't have a `.env`, we create one.
16
15
if [ ! -f .env ]
@@ -19,16 +18,11 @@ cp .env.sample .env
19
18
. .env
20
19
fi
21
20
22
- docker-compose up -d web
23
-
24
21
cargo run -- start-web-server &
25
22
SERVER_PID=$!
26
23
27
24
docker build . -f dockerfiles/Dockerfile-gui-tests -t gui_tests
28
25
29
- echo " Sleeping a bit to be sure the web server will be started..."
30
- sleep 5
31
-
32
26
# status="docker run . -v `pwd`:/build/out:ro gui_tests"
33
27
docker-compose run gui_tests
34
28
status=$?
You can’t perform that action at this time.
0 commit comments