Skip to content

Commit

Permalink
bruk testbranchen som "master" foreløpig
Browse files Browse the repository at this point in the history
  • Loading branch information
bdahle committed Jan 21, 2025
1 parent fe598d5 commit 669ce29
Showing 1 changed file with 2 additions and 44 deletions.
46 changes: 2 additions & 44 deletions .github/workflows/update-playwright-screenshots.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Update Playwright screenshots
on:
push:
branches: [master]
branches: [playwright-regresiion-test] # TODO: endre tilbake til master før merge til master
pull_request:
branches: [master]
branches: [playwright-regresiion-test] # TODO: endre tilbake til master før merge til master
jobs:
update-snapshots:
name: Update Snapshots
Expand Down Expand Up @@ -41,45 +41,3 @@ jobs:
with:
message: |
### 🎉 Successfully updated and committed Playwright snapshots! 🎉
generate-report:
name: Generate report
runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: write
pull-requests: write
steps:
- name: Get branch of PR
uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- run: npm run build-storybook
- name: Run Playwright
run: docker run --rm -v $(pwd):/workspace -w /workspace --ipc=host mcr.microsoft.com/playwright:v1.49.1-noble /bin/bash -c "CI=true npx playwright test"
- uses: actions/upload-artifact@v4
id: artifact-upload
if: ${{ failure() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Comment on PR with report link
uses: thollander/actions-comment-pull-request@v3
if: ${{ failure() }}
with:
message: |
### Playwright visual snapshot differences were detected.
View the [Playwright report](${{ steps.artifact-upload.outputs.artifact-url }}) to review the visual differences.
**To approve the snapshot changes and update the snapshots, please comment:** /approve-snapshots

0 comments on commit 669ce29

Please sign in to comment.