Cypress 🎳 #178
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: "Cypress 🎳" | |
on: | |
push: | |
branches: | |
- master | |
- release_3_4 | |
- tests_load_sql | |
pull_request: | |
branches: | |
- master | |
- release_3_4 | |
- tests_load_sql | |
jobs: | |
cypress: | |
name: "Cypress" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run tests docker | |
run: cd tests && ./run-docker pull | |
# In this step, this action saves a list of existing images, | |
# the cache is created without them in the post run. | |
# It also restores the cache if it exists. | |
#- uses: satackey/[email protected] | |
# Ignore the failure of a step and avoid terminating the job. | |
# continue-on-error: true | |
- run: cd tests && ./run-docker up --build -d | |
- run: cd tests && sleep 30 && ./lizmap-ctl install | |
- name: Load SQL data | |
run: cd tests/qgis-projects/tests && ./load_sql.sh | |
- name: Install Lizmap as QGIS Server plugin | |
run: cd tests && ./add_server_plugins.sh | |
# Install NPM dependencies, cache them correctly | |
# and run all Cypress tests | |
- name: Cypress run | |
uses: cypress-io/github-action@v2 | |
with: | |
browser: chrome | |
headless: true | |
working-directory: tests/js | |
wait-on: http://localhost:8130 | |
- name: Display Lizmap error logs | |
run: cat lizmap/var/log/errors.log |