ci: Add jest unit tests #125
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: end-to-end-tests | |
on: | |
push: | |
paths: | |
- .github/workflows/test-with-selenium.yaml | |
- chrome/** | |
- firefox/** | |
- tests/scripts/** | |
- tests/testcases/** | |
- tests/end-to-end-test/** | |
pull_request: | |
jobs: | |
test-with-selenium: | |
name: End-to-end 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 |