mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
24 lines
919 B
YAML
24 lines
919 B
YAML
name: e2e:segments
|
|
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
|
|
on: [ deployment_status ]
|
|
jobs:
|
|
e2e:
|
|
# only runs this job on successful deploy
|
|
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
|
|
steps:
|
|
- name: Dump GitHub context
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
run: |
|
|
echo "$GITHUB_CONTEXT"
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Run Cypress
|
|
uses: cypress-io/github-action@v2
|
|
with:
|
|
working-directory: frontend
|
|
env: AUTH_USER=admin,AUTH_PASSWORD=unleash4all
|
|
config: baseUrl=${{ github.event.deployment_status.target_url }}
|
|
spec: cypress/integration/segments/segments.spec.ts
|