-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying another configuration for the GH Action
- Loading branch information
1 parent
e91e517
commit 408f664
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |