Skip to content

Bump minimatch

Bump minimatch #5715

name: Visual test
on:
pull_request:
jobs:
visual-test:
if: ${{ github.repository == 'primer/brand' }}
name: Storybook
runs-on: ubuntu-latest-16-cores
env:
NODE_ENV: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run visual tests
id: playwright-step
run: cd packages/e2e && bash scripts/playwright/run-visual-tests
continue-on-error: true
- name: Upload error screenshots
uses: actions/upload-artifact@v4
if: steps.playwright-step.outcome != 'success'
with:
name: playwright-test-results
path: packages/e2e/playwright-test-results
- name: Upload test results
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: packages/e2e/playwright-report/
retention-days: 30
- name: Comment on the PR about visual differences
if: steps.playwright-step.outcome != 'success'
uses: phulsechinmay/rewritable-pr-comment@v0.2.1
with:
message: |
### ⚠️ Visual differences found
<details><summary>Our visual comparison tests found UI differences.</summary>
Please review the differences by using the test artifacts to ensure that the changes were intentional.
Artifacts can be downloaded and reviewed locally.
Download links are available at the bottom of the workflow summary screen.
##### Example:
![artifacts section of workflow run](https://user-images.githubusercontent.com/13340707/181026915-2bda8a90-58e3-40ef-a2f6-c9c4af6e9c4a.png)
If the changes are expected, please run `npm run test:visual:update-snapshots` to replace the previous fixtures.
</details>
[Review visual differences](https://github.com/primer/brand/actions/runs/${{ github.run_id }})
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMENT_IDENTIFIER: 'visual-comparison-diff'
- name: Comment on the PR about no visual differences
if: steps.playwright-step.outcome == 'success'
uses: phulsechinmay/rewritable-pr-comment@v0.2.1
with:
message: |
### 🟢 No visual differences found
Our visual comparison tests did not find any differences in the UI.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMENT_IDENTIFIER: 'visual-comparison-diff'