Merge pull request #28 from htadashi/master #85
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: tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
test-with-selenium: | |
name: Test with Selenium | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Pull docker images | |
run: tests/scripts/docker-compose.sh pull | |
- name: Start test containers | |
run: tests/scripts/docker-compose.sh up -d | |
- name: Test selenium hub connection | |
run: tests/scripts/docker-utils/test-connection.sh http://selenium-hub:4444 | |
# Start testing | |
- name: Test default | |
run: tests/scripts/docker-utils/exec-selenium.sh test_default.py | |
- name: Test navigation | |
run: tests/scripts/docker-utils/exec-selenium.sh test_navigation.py | |
# Clean up | |
- name: Stop test containers | |
if: always() | |
run: tests/scripts/docker-compose.sh shutdown |