upload screenshots to see what's wrong #10
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: E2E Test on PR | |
on: | |
push: {} # TODO remove this once tested | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cypress-run: | |
name: e2e | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run docker-compose | |
working-directory: ./.devcontainer | |
run: | | |
docker compose -f docker-compose.yml -f docker-compose.e2e.yml build | |
docker compose -f docker-compose.yml -f docker-compose.e2e.yml up -d | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: ./e2e | |
- name: Upload screenshots | |
uses: actions/upload-artifact@latest | |
if: failure() | |
with: | |
name: cypress-snapshots | |
path: ./e2e/cypress/snapshots |