Skip to content

Commit

Permalink
test: correct example-chrome
Browse files Browse the repository at this point in the history
Make artifacts use correct source paths for upload
Make labels consistent for v9 and v10
Correct headed parameter
  • Loading branch information
MikeMcC399 committed Dec 17, 2022
1 parent 6e5f369 commit 0500106
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/example-chrome.yml
Expand Up @@ -10,7 +10,7 @@ jobs:

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v9 and lower ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #

tests:
tests-v9:
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand All @@ -33,8 +33,8 @@ jobs:
# store screenshot captured during the test
- uses: actions/upload-artifact@v3
with:
name: screenshots-in-electron
path: examples/chrome/cypress/screenshots
name: screenshots-in-electron-v9
path: examples/v9/chrome/cypress/screenshots

- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/v9/chrome
Expand All @@ -47,13 +47,13 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: screenshots-in-chrome
path: examples/chrome/cypress/screenshots
name: screenshots-in-chrome-v9
path: examples/v9/chrome/cypress/screenshots

- uses: actions/upload-artifact@v3
with:
name: video-in-chrome
path: examples/chrome/cypress/videos
name: video-in-chrome-v9
path: examples/v9/chrome/cypress/videos

- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/v9/chrome
Expand All @@ -72,13 +72,13 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: screenshots-in-headed-chrome
path: examples/chrome/cypress/screenshots
name: screenshots-in-headed-chrome-v9
path: examples/v9/chrome/cypress/screenshots

- uses: actions/upload-artifact@v3
with:
name: video-in-headed-chrome
path: examples/chrome/cypress/videos
name: video-in-headed-chrome-v9
path: examples/v9/chrome/cypress/videos

- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/v9/chrome
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
# store screenshot captured during the test
- uses: actions/upload-artifact@v3
with:
name: screenshots-in-electron
name: screenshots-in-electron-v10
path: examples/v10/chrome/cypress/screenshots

- run: npx image-size cypress/screenshots/**/*.png
Expand All @@ -122,12 +122,12 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: screenshots-in-chrome
name: screenshots-in-chrome-v10
path: examples/v10/chrome/cypress/screenshots

- uses: actions/upload-artifact@v3
with:
name: video-in-chrome
name: video-in-chrome-v10
path: examples/v10/chrome/cypress/videos

- run: npx image-size cypress/screenshots/**/*.png
Expand All @@ -143,16 +143,16 @@ jobs:
with:
working-directory: examples/v10/chrome
browser: chrome
headless: true
headed: false

- uses: actions/upload-artifact@v3
with:
name: screenshots-in-headless-chrome
name: screenshots-in-headless-chrome-v10
path: examples/v10/chrome/cypress/screenshots

- uses: actions/upload-artifact@v3
with:
name: video-in-headless-chrome
name: video-in-headless-chrome-v10
path: examples/v10/chrome/cypress/videos

- run: npx image-size cypress/screenshots/**/*.png
Expand Down

0 comments on commit 0500106

Please sign in to comment.