Update Snapshots #14
Workflow file for this run
This file contains hidden or 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: Update Snapshots | |
on: | |
workflow_dispatch: | |
jobs: | |
update-snapshots: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: π Copy test env vars | |
run: cp .env.test .env | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- uses: supabase/setup-cli@v1 | |
with: | |
version: latest | |
- run: supabase start | |
- name: Install Playwright Browsers | |
run: pnpx playwright install | |
- name: Build | |
run: pnpm build | |
- name: Create Test User | |
run: pnpm tsx scripts/create-test-user.ts | |
- name: Update snapshots | |
run: pnpm e2e:update | |
- name: Commit snapshots | |
uses: EndBug/add-and-commit@v9 |