mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
a36bbe0904
Co-authored-by: Renovate Bot <bot@renovateapp.com>
24 lines
850 B
YAML
24 lines
850 B
YAML
name: e2e-tests
|
|
# 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'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Dump GitHub context
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
run: |
|
|
echo "$GITHUB_CONTEXT"
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Run Cypress
|
|
uses: cypress-io/github-action@v2
|
|
with:
|
|
env: AUTH_TOKEN=${{ secrets.UNLEASH_TOKEN }},DEFAULT_ENV="default"
|
|
config: baseUrl=${{ github.event.deployment_status.target_url }}
|
|
record: true
|
|
env:
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} |