Skip to content

Commit

Permalink
ci: new test
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Apr 1, 2024
1 parent f0d24d3 commit bf3f210
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/screenshot_capture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
node-version: "18"
cache: "npm"

- name: Download Build
- name: Install Dependencies
uses: Wandalen/wretry.action@v3
with:
command: npm ci
Expand All @@ -107,39 +107,36 @@ jobs:
uses: actions/upload-artifact@v4
id: screenshots
with:
name: snapshots-${{ matrix.shardIndex }}
name: screenshots-${{ matrix.shardIndex }}
path: |
screenshots/
if-no-files-found: error
retention-days: 1

merge-snapshots:
name: Merge Snapshots
name: Merge Screenshots
runs-on: ubuntu-latest
needs: [visual-snapshots]
steps:

- name: Check out repository code
uses: actions/checkout@v4

- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v4
with:
path: snapshots
pattern: snapshots-*
path: screenshots
pattern: screenshots-*
merge-multiple: true

- name: Merge Snapshots
run: |
ls -ll
ls -ll snapshots
ls -ll screenshots
- name: Upload Screenshots
uses: actions/upload-artifact@v4
id: screenshots
with:
name: "snapshots"
name: "screenshots"
path: |
snapshots/
screenshots/
if-no-files-found: error
retention-days: 3
6 changes: 4 additions & 2 deletions .github/workflows/visual-comparison.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ jobs:
path: ${{ env.HTML_REPORT_URL_PATH }}

- name: Push HTML Report
timeout-minutes: 3
timeout-minutes: 5
run: |
git add .
git commit -m "workflow: add HTML report for run-id ${{ github.run_id }} (attempt: ${{ github.run_attempt }})"
Expand Down Expand Up @@ -240,7 +240,9 @@ jobs:
with:
message: |
📋 Visual Report for ${{ github.ref_name }} with CI run ${{ github.run_id }} and attempt ${{ github.run_attempt }} is ready attempt at
https://spectrocloud.github.io/${{env.GITHUB_REPOSITORY_OWNER}}/${{env.HTML_REPORT_URL_PATH}}
https://spectrocloud.github.io/${{ github.GITHUB_REPOSITORY_OWNER}}/${{env.HTML_REPORT_URL_PATH}}
💡 You may have to wait for DNS to resolve or the GitHub Pages job to complete. You can view the progress of the GitHub Pages job [here](https://github.com/spectrocloud/librarium/actions/workflows/pages/pages-build-deployment).
message-failure: |
👎 Uh oh! Unable to publish Visual Report URL.
refresh-message-position: true
Expand Down
1 change: 0 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const config: PlaywrightTestConfig = {
testDir: "visuals",
fullyParallel: true,
retries: 1,

expect: {
toMatchSnapshot: {
maxDiffPixels: 100,
Expand Down

0 comments on commit bf3f210

Please sign in to comment.