-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (34 loc) · 1.04 KB
/
selenium_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Selenium_tests
on: [push]
jobs:
check_tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build system images (non-pulling)
run: |
# build base image
docker build -f Dockerfile_base -t osll/slides-base:20230202 .
- name: Build docker-compose-tests
run: |
cp .env_example .env
docker-compose -f docker-compose-tests.yml build
- name: Run docker-compose-tests
run: |
docker-compose -f docker-compose-tests.yml up -d
sleep 10
- name: Time for testing
run: |
while [ $(docker ps | grep selenium_tests) ]; do
sleep 60
done
- name: Tests results
run: |
echo docker-compose -f docker-compose-tests.yml logs selenium-tests
if [ $(docker-compose -f docker-compose-tests.yml logs selenium-tests | grep -c "OK") -eq 1 ]; then
echo true
exit 0
else
echo false
exit 1
fi