Update Snapshots #30
Workflow file for this run
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: Update Snapshots | |
on: | |
workflow_dispatch: | |
jobs: | |
update_snapshots: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Fail if branch is main | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
echo "This workflow should not be triggered with workflow_dispatch on main" | |
exit 1 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Playwright tests | |
run: npm run e2e:snapshots | |
- name: Commit Playwright updated snapshots | |
uses: EndBug/add-and-commit@v9 | |
if: ${{ github.ref != 'refs/heads/main' }} | |
with: | |
add: e2e | |
default_author: github_actions | |
message: "🤖 update snapshots" |