1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/.github/workflows/e2e.frontend.yaml
Gastón Fournier 08d501a7c1
Try record
2024-09-02 15:43:56 +02:00

36 lines
1.2 KiB
YAML

name: e2e:frontend
on: [deployment_status]
jobs:
e2e:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.target_url, 'unleash-monorepo-frontend')
runs-on: ubuntu-latest
strategy:
matrix:
test:
- feature/feature.spec.ts
- groups/groups.spec.ts
- projects/access.spec.ts
- segments/segments.spec.ts
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
- name: Checkout
uses: actions/checkout@v4
- name: Run Cypress
uses: cypress-io/github-action@v6
env:
# DEBUG: '@cypress/github-action'
DEBUG: 'cypress:*'
CYPRESS_RECORD_KEY: f4265c61-c7ca-4188-9e02-8958afa98cbc
CYPRESS_PROJECT_ID: f4265c61
with:
working-directory: frontend
env: AUTH_USER=admin,AUTH_PASSWORD=unleash4all
config: baseUrl=${{ github.event.deployment_status.target_url }}
spec: cypress/integration/${{ matrix.test }}
install-command: yarn --immutable
record: true