Skip to content

Commit

Permalink
Merge pull request #1579 from GSA/1566-include-screenshots-on-failure
Browse files Browse the repository at this point in the history
1566 include screenshots on failure
  • Loading branch information
scottqueen-bixal authored Jul 22, 2024
2 parents 2818f6a + ad5b861 commit 855a3c5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-cypress-prod-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
config-file: cypress.prod.links.config.js
working-directory: benefit-finder

- name: Prod Artifact(s)
if: failure()
uses: actions/upload-artifact@v4
with:
name: Prod cypress screenshots
path: ./benefit-finder/cypress/screenshots


- name: create github issue
uses: dacbd/create-issue-action@main
if: failure()
Expand Down
34 changes: 31 additions & 3 deletions .github/workflows/test-cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
build: "npm run cy:build:storybook"
start: "npm run cy:run:pipeline"

- name: Chrome Artifact(s)
if: failure()
uses: actions/upload-artifact@v4
with:
name: Chrome cypress screenshots
path: ./benefit-finder/cypress/screenshots

tests-firefox:
runs-on: ubuntu-latest
steps:
Expand All @@ -65,6 +72,13 @@ jobs:
build: "npm run cy:build:storybook"
start: "npm run cy:run:pipeline"

- name: Firefox Artifact(s)
if: failure()
uses: actions/upload-artifact@v4
with:
name: Firefox cypress screenshots
path: ./benefit-finder/cypress/screenshots

tests-edge:
runs-on: ubuntu-latest
steps:
Expand All @@ -89,6 +103,13 @@ jobs:
env: NODE_ENV=test
build: "npm run cy:build:storybook"
start: "npm run cy:run:pipeline"

- name: Edge Artifact(s)
if: failure()
uses: actions/upload-artifact@v4
with:
name: Edge cypress screenshots
path: ./benefit-finder/cypress/screenshots

tests-webkit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -123,11 +144,11 @@ jobs:
build: "npm run cy:build:storybook"
start: "npm run cy:run:pipeline"

- name: Artifact(s)
- name: Webkit Artifact(s)
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cypress screenshots
name: Webkit cypress screenshots
path: ./benefit-finder/cypress/screenshots

tests-components:
Expand All @@ -154,3 +175,10 @@ jobs:
browser: chrome
env: NODE_ENV=test
build: "npm run cy:prebuild:storybook"

- name: Component Artifact(s)
if: failure()
uses: actions/upload-artifact@v4
with:
name: Component cypress screenshots
path: ./benefit-finder/cypress/screenshots

0 comments on commit 855a3c5

Please sign in to comment.