Skip to content

Commit

Permalink
Trying another configuration for the GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
megoth-capgemini committed Nov 27, 2023
1 parent e91e517 commit 408f664
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: E2E tests
on: push
on: [ deployment_status ]
jobs:
e2e:
run_e2e_tests:
name: Run E2E tests
# This statement makes sure that this job is only
# executed when the deployment to Vercel was
# successful
if: github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
# Thank you cypress for providing a container
# that works out-of-the-box
container: cypress/browsers:node11.13.0-chrome73
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
- name: Run E2E tests
uses: cypress-io/github-action@v6
env:
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url }}
run: cypress --config baseUrl=${{ github.event.deployment_status.target_url }}

0 comments on commit 408f664

Please sign in to comment.