Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/run-tests-example-apps-write-screenshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run tests for example apps

on:
workflow_dispatch:

jobs:
update-screenshots-example-apps:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: cd examples/tests && npm ci

- name: Install Playwright browsers
run: cd examples/tests && npx playwright install --with-deps

- name: Install http-server globally
run: npm install -g http-server

- name: Run tests
run: cd examples/tests && npm test -- --update-snapshots

- name: Upload screenshots
run: |
git add .
git commit -m 'ci: update screenshots' --allow-empty
git push
Comment on lines +8 to +35

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Loading