File tree 1 file changed +57
-0
lines changed
1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Playwright Snapshots
2
+
3
+ on :
4
+ issue_comment :
5
+ types : [created, edited]
6
+
7
+ permissions :
8
+ contents : write
9
+ pull-requests : write
10
+
11
+ jobs :
12
+ update-snapshots :
13
+ if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'update playwright snapshots') }}
14
+ runs-on : ubuntu-latest
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ browser : [firefox, chromium]
19
+
20
+ steps :
21
+ - name : Checkout
22
+ uses : actions/checkout@v3
23
+
24
+ - name : Checkout the branch from the PR that triggered the job
25
+ run : |
26
+ # PR branch remote must be checked out using https URL
27
+ git config --global hub.protocol https
28
+ hub pr checkout ${{ github.event.issue.number }}
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+
32
+ - name : Build
33
+ uses : ./.github/actions/build-dist
34
+
35
+ - uses : actions/download-artifact@v3
36
+ with :
37
+ name : notebook-dist-${{ github.run_number }}
38
+ path : ./dist
39
+
40
+ - name : Install the package
41
+ run : |
42
+ cd dist
43
+ python -m pip install -vv notebook*.whl
44
+
45
+ - name : Install the test dependencies
46
+ run : |
47
+ cd ui-tests
48
+ jlpm --frozen-lockfile
49
+ jlpm playwright install
50
+
51
+ - name : Update snapshots
52
+ uses : jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1
53
+ with :
54
+ github_token : ${{ secrets.GITHUB_TOKEN }}
55
+ test_folder : playwright-tests
56
+ start_server_script : ' null'
57
+ update_script : test:update --browser ${{ matrix.browser }}
You can’t perform that action at this time.
0 commit comments