Bump vite from 5.4.10 to 5.4.12 in the npm_and_yarn group across 1 directory #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check PR | |
on: | |
pull_request: | |
env: | |
CI: true | |
TURBO_API: http://127.0.0.1:9080 | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: foo | |
jobs: | |
visual-regression-test: | |
name: Run visual regression test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: marshallku/actions/setup/pnpm@master | |
- name: TurboRepo server | |
uses: felixmosh/turborepo-gh-artifacts@v3 | |
with: | |
repo-token: ${{ github.token }} | |
- name: Install puppeteer | |
run: npx puppeteer browsers install chrome | |
- name: Run backstop server in background | |
run: pnpm dev --filter @marshallku/visual-regression & | |
- name: Build apps and packages without blog | |
run: pnpm build --filter !@marshallku/blog | |
- name: Run test | |
id: test | |
continue-on-error: true | |
run: pnpm test:visual-regression | |
- name: Check test result | |
id: check-test-result | |
run: | | |
OUTPUT=$(node apps/visual-regression/reportResult.js) | |
echo "$OUTPUT" >> "$GITHUB_ENV" | |
- name: Comment test result | |
if: ${{ !cancelled() }} | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: | | |
Test result - ${{ steps.test.outcome }} | |
${{ env.TEST_RESULT }} | |
You can check results [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: backstop-data | |
path: apps/visual-regression/backstop_data | |
retention-days: 30 |