This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
Pin xeus-lite #31
This file contains 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: Update Playwright Snapshots | |
on: | |
issue_comment: | |
types: [created, edited] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-snapshots: | |
if: | |
${{ github.event.issue.pull_request && contains(github.event.comment.body, 'update | |
playwright snapshots') }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
browser: [firefox, chromium] | |
steps: | |
- name: React to the triggering comment | |
run: | | |
gh api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions --raw-field 'content=+1' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout the branch from the PR that triggered the job | |
run: | | |
# PR branch remote must be checked out using https URL | |
git config --global hub.protocol https | |
gh pr checkout ${{ github.event.issue.number }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Base Setup | |
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- name: Build | |
run: | | |
# TODO: install addon | |
# disable git hooks | |
git config core.hooksPath no-hooks | |
- name: Install the test dependencies | |
run: | | |
cd ui-tests | |
jlpm | |
jlpm build | |
jlpm playwright install | |
- name: Update snapshots | |
uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
npm_client: jlpm | |
test_folder: ui-tests | |
start_server_script: 'null' | |
update_script: test:update --browser ${{ matrix.browser }} | |
env: | |
DEBUG: pw:webserver |