daydream

A small matrix web client written in rust
git clone git://archive.git.mtrnord.blog/daydream-mx/daydream.git
Log | Files | Refs | README | LICENSE

commit dbfbbc3ae44d14618565dcd17b622004143069e1
parent 0d054c09b8e5510fa472b8fd5cd30ed14f0c0850
Author: Marcel <mtrnord1@gmail.com>
Date:   Sat, 13 Jun 2020 20:51:00 +0200

Fix e2e tests and upload videos and screenshots which get generated

Took 3 minutes

Diffstat:
M.github/workflows/tests.yml | 40+++++++++++++++++++++++++++++++++++++---
1 file changed, 37 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml @@ -1,15 +1,31 @@ -name: E2E on Chrome +name: E2E Tests on: [push] jobs: chrome: runs-on: ubuntu-16.04 - # let's make sure our tests pass on Chrome browser - name: E2E on Chrome steps: - uses: actions/checkout@v1 - uses: cypress-io/github-action@v1 with: browser: chrome + command: npm run test + # after the test run completes + # store videos and any screenshots + # NOTE: screenshots will be generated only if E2E test failed + # thus we store screenshots only on failures + # Alternative: create and commit an empty cypress/screenshots folder + # to always have something to upload + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots + # Test run video was always captured, so this action uses "always()" condition + - uses: actions/upload-artifact@v1 + if: always() + with: + name: cypress-videos + path: cypress/videos firefox: runs-on: ubuntu-latest container: @@ -20,3 +36,21 @@ jobs: - uses: cypress-io/github-action@v1 with: browser: firefox + command: npm run test + # after the test run completes + # store videos and any screenshots + # NOTE: screenshots will be generated only if E2E test failed + # thus we store screenshots only on failures + # Alternative: create and commit an empty cypress/screenshots folder + # to always have something to upload + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots + # Test run video was always captured, so this action uses "always()" condition + - uses: actions/upload-artifact@v1 + if: always() + with: + name: cypress-videos + path: cypress/videos