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 326daf6 commit abd807a
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/example-chrome.yml
Expand Up @@ -8,7 +8,7 @@ jobs:

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

tests:
tests-v9:
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand All @@ -31,8 +31,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 @@ -45,13 +45,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 @@ -70,13 +70,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 @@ -106,7 +106,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 @@ -120,12 +120,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 @@ -141,16 +141,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 abd807a

Please sign in to comment.