Merge pull request #4377 from serlo/production #1063
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 (firefox) | |
on: | |
workflow_dispatch: | |
push: | |
# workflow is triggered on staging and branches starting with 'e2e' | |
# but tests always run against staging preview build | |
branches: | |
- staging | |
- e2e** | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./e2e-tests | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: yarn | |
- run: yarn playwright install --with-deps firefox | |
- uses: patrickedqvist/wait-for-vercel-preview@v1.3.2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
max_timeout: 1200 | |
check_interval: 20 | |
- run: yarn e2e-firefox tests/4*.ts | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: e2e-screenshots-on-fail | |
path: e2e-tests/output/ # or path/to/artifact |