Skip to content

Commit

Permalink
chore: finally get cypress tests right (#3665)
Browse files Browse the repository at this point in the history
* chore: finally get cypress tests right

* chore: correct the event
  • Loading branch information
SiTaggart authored Dec 9, 2023
1 parent 43b600c commit 71c481a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/on_deployment_status_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,12 @@ jobs:
# So we run VRT on every merge to main, and on every PR (on_pull_request_cypress) if requested via a label
- name: Cypress run website preview
uses: cypress-io/github-action@v4
if: github.event.production_environment == false
if: github.event.deployment.environment == 'Preview – paste-docs'
with:
record: true
parallel: true
group: "Paste Docsite integration tests"
config: baseUrl=${{ github.event.deployment_status.environment_url }}
# enabled percy to run cypress for VRT
command-prefix: "percy exec --parallel -- npx"
# this config excludes the VRT tests. Those are run on the pull_request event if requested
config-file: cypress.config.e2e.ts
env:
Expand All @@ -69,7 +67,7 @@ jobs:
# Run cypress on merge to main aong with VRT to create our new baselines
- name: Cypress run with site VRT on main
uses: cypress-io/github-action@v4
if: github.event.production_environment
if: github.event.deployment.environment == 'Production – paste-docs'
with:
record: true
parallel: true
Expand Down

1 comment on commit 71c481a

@vercel
Copy link

@vercel vercel bot commented on 71c481a Dec 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.