2022-02-10 17:04:10 +01:00
|
|
|
name: e2e:feature
|
2021-09-30 11:44:30 +02:00
|
|
|
# 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
|
2022-03-25 10:18:06 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-09-30 11:44:30 +02:00
|
|
|
- name: Run Cypress
|
|
|
|
uses: cypress-io/github-action@v2
|
2022-02-25 10:21:28 +01:00
|
|
|
with:
|
2022-04-08 12:34:59 +02:00
|
|
|
env: AUTH_USER=admin,AUTH_PASSWORD=unleash4all
|
2021-09-30 11:44:30 +02:00
|
|
|
config: baseUrl=${{ github.event.deployment_status.target_url }}
|
|
|
|
record: true
|
2022-02-25 10:21:28 +01:00
|
|
|
spec: cypress/integration/feature/feature.spec.ts
|
2021-09-30 11:44:30 +02:00
|
|
|
env:
|
2022-02-25 10:21:28 +01:00
|
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|