Web components : Enhance documentation and Storybook features (#203) #14
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: 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. |