Skip to content

Commit c7468c5

Browse files
authored
Test update script on CI (#296)
1 parent e4f6e8c commit c7468c5

File tree

4 files changed

+27
-17
lines changed

4 files changed

+27
-17
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: CI
22
on:
33
- push
44
- pull_request
5+
permissions:
6+
contents: read
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
510
jobs:
611
test:
712
name: Node.js ${{ matrix.node-version }}
@@ -19,3 +24,24 @@ jobs:
1924
node-version: ${{ matrix.node-version }}
2025
- run: npm install
2126
- run: npm test
27+
test-update:
28+
name: Update script (${{ matrix.os }})
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
os:
34+
- ubuntu-latest
35+
- macos-latest
36+
- windows-latest
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-node@v4
40+
with:
41+
check-latest: true
42+
node-version: latest
43+
- run: npm install
44+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
45+
- run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
46+
if: matrix.os == 'ubuntu-latest'
47+
- run: npm run update --dry

.github/workflows/update.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ jobs:
3939
check-latest: true
4040
node-version: latest
4141
- run: npm install
42-
# https://github.com/puppeteer/puppeteer/issues/13853
43-
- run: npx patch-package
4442
- uses: actions/download-artifact@v4
4543
with:
4644
name: data

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"nano-spawn": "^0.2.0",
5555
"npm-run-all2": "^8.0.1",
5656
"outdent": "^0.8.0",
57-
"patch-package": "^8.0.0",
58-
"puppeteer": "^24.8.1",
57+
"puppeteer": "^24.8.2",
5958
"shelljs": "^0.9.2",
6059
"tsd": "^0.32.0",
6160
"type-fest": "^4.41.0",

patches/@puppeteer+browsers+2.10.3.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)