Add cypress cloud recording

This commit is contained in:
Devon Hudson 2023-01-11 10:40:38 -07:00
parent 8fef692741
commit b297ea7379
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -75,6 +75,7 @@ jobs:
/logs/**/*.log*
element_web:
timeout-minutes: 120
runs-on: ubuntu-latest
steps:
- uses: tecolicom/actions-use-apt-tools@v1
@ -107,6 +108,13 @@ jobs:
browser: chrome
start: npx serve -p 8080 ./element-web/webapp
wait-on: 'http://localhost:8080'
record:
true
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
TMPDIR: ${{ runner.temp }}