Skip to content

E2E

E2E #86

Workflow file for this run

name: E2E
on: deployment_status
jobs:
e2e:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
strategy:
matrix:
browser: [chrome, edge, firefox, webkit]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
# cache: 'npm' # currently npm cache doesn't work in deployment_status
- run: npm ci
- run: npx playwright install-deps webkit
if: matrix.browser == 'webkit'
- uses: cypress-io/github-action@v6
with:
install: false
browser: ${{ matrix.browser }}
env:
CYPRESS_BASE_URL: ${{ github.event.deployment_status.environment_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
CYPRESS_CONTENTFUL_ACCESS_TOKEN: ${{ github.event.deployment_status.environment == 'Production' && secrets.CONTENTFUL_ACCESS_TOKEN_PROD || secrets.CONTENTFUL_ACCESS_TOKEN_DEVELOP }}
CYPRESS_ENVIRONMENT: ${{ github.event.deployment_status.environment }}