set output #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 120 | |
- name: Tests results | |
run: | | |
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 | |