Skip to content

πŸŒ… Update Snapshots #17

πŸŒ… Update Snapshots

πŸŒ… Update Snapshots #17

name: πŸŒ… Update Snapshots
on:
- workflow_dispatch
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
update-snapshots:
name: πŸŒ… Update Snapshots
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install --frozen-lockfile --ignore-scripts
- name: Install Playwright Browsers
run: bunx playwright install chromium --with-deps
- uses: nrwl/nx-set-shas@v4
- run: bunx nx affected --target e2e --update-snapshots
- run: |
git config --global user.email "[email protected]"
git config --global user.name "Marmicode Bot"
git add apps/*/e2e/**/*.png
git diff --cached --quiet || git commit -a -m "test: βœ… update snapshots"
git push
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: dist/.playwright/apps/cookbook/playwright-report/
retention-days: 30