|
@@ -0,0 +1,45 @@
|
|
|
+name: Update Playwright Snapshots
|
|
|
+
|
|
|
+on:
|
|
|
+ issue_comment:
|
|
|
+ types: [created, edited]
|
|
|
+
|
|
|
+permissions:
|
|
|
+ contents: write
|
|
|
+ pull-requests: write
|
|
|
+
|
|
|
+jobs:
|
|
|
+ update-galata-snapshots:
|
|
|
+ name: Update Galata References
|
|
|
+ if: ${{ github.event.issue.pull_request && (contains(github.event.comment.body, 'please update galata snapshots') || contains(github.event.comment.body, 'please update snapshots')) }}
|
|
|
+ timeout-minutes: 80
|
|
|
+ runs-on: ubuntu-20.04
|
|
|
+
|
|
|
+ steps:
|
|
|
+ - name: Checkout
|
|
|
+ uses: actions/checkout@v2
|
|
|
+ with:
|
|
|
+ token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+
|
|
|
+ - name: Configure git to use https
|
|
|
+ run: git config --global hub.protocol https
|
|
|
+
|
|
|
+ - name: Checkout the branch from the PR that triggered the job
|
|
|
+ run: hub 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: Install dependencies
|
|
|
+ run: |
|
|
|
+ bash ./scripts/ci_install.sh
|
|
|
+ # Build dev-mode
|
|
|
+ jlpm run build
|
|
|
+
|
|
|
+ - uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1
|
|
|
+ with:
|
|
|
+ github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ server_url: http-get://localhost:8888/lab
|
|
|
+ test_folder: galata
|