Skip to content

Commit

Permalink
.github: e2e: Compare screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ix5 committed May 27, 2022
1 parent 7197615 commit 50edbab
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
- "package.json"
- "docker/**"
- "Dockerfile"
- ".github/workflows/docker-compose.yml"
- ".github/workflows/e2e-tests.yml"
push:
paths:
- "isso/**"
- "package.json"
- "docker/**"
- "Dockerfile"
- ".github/workflows/docker-compose.yml"
- ".github/workflows/e2e-tests.yml"

jobs:
test:
Expand Down Expand Up @@ -56,3 +56,26 @@ jobs:
--env ISSO_ENDPOINT='http://isso-dev.local:8080' \
--network container:isso-server \
${{ env.TESTBED_IMAGE }} npm run test-integration
- uses: actions/upload-artifact@v2
with:
name: screenshots
path: isso/js/tests/integration/screenshots/*.png

compare-screenshots:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v3
with:
name: screenshots
path: isso/js/tests/integration/screenshots/

- name: Display structure of downloaded files
run: ls -lR
working-directory: isso/js/tests/integration/screenshots/

- name: Compare screenshots
run: bash isso/js/tests/integration/compare-hashes.sh

0 comments on commit 50edbab

Please # to comment.