Skip to content

Web components: file organization at project root (#182) #7

Web components: file organization at project root (#182)

Web components: file organization at project root (#182) #7

Workflow file for this run

name: Playwright Tests
permissions:
contents: read
pull-requests: write
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.55.0-noble
env:
HOME: /root
steps:
- uses: actions/checkout@v4
- name: Setup project
uses: ./.github/actions/setup
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Comment on PR with report link
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # pin v3.0.1
if: ${{ failure() }}
with:
message: |
### Playwright tests failed.
View the [Playwright report](${{ steps.artifact-upload.outputs.artifact-url }}) to review any visual differences.
**To generate updated snapshots, run the "Generate New Playwright Screenshots" workflow.** and add the updated snapshots to your PR.