Skip to content

Conversation

@chittolinag
Copy link
Contributor

Workflow to update the screenshots used by the example tests suite.

Comment on lines +8 to +35
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 No newline at end of file

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}
@chittolinag chittolinag closed this Sep 2, 2025
@chittolinag chittolinag deleted the feat/workflow-update-screenshots-example-apps branch September 2, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants