mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
99e7aec18a
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
31 lines
1.0 KiB
YAML
31 lines
1.0 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
|
|
- projects/overview.spec.ts
|
|
- segments/segments.spec.ts
|
|
- import/import.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@v5
|
|
with:
|
|
working-directory: frontend
|
|
env: AUTH_USER=admin,AUTH_PASSWORD=unleash4all
|
|
config: baseUrl=${{ github.event.deployment_status.target_url }}
|
|
spec: cypress/integration/${{ matrix.test }}
|