Skip to content

Commit

Permalink
Update puppeteer versions and config
Browse files Browse the repository at this point in the history
  • Loading branch information
marlo-longley committed Oct 15, 2024
1 parent 018142a commit 3e7eed8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ jobs:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: browser-actions/setup-chrome@v1
id: setup-chrome
- run: |
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $GITHUB_ENV
- run: npm install
- run: npm test
- name: Upload coverage to Codecov
Expand Down
3 changes: 3 additions & 0 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module.exports = {
launch: {
// See https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
args: ['--no-sandbox', '--disable-setuid-sandbox'],
executablePath: process.env.CHROME_BIN || 'chromium',
headless: process.env.HEADLESS !== 'false' ? 'new' : false,
},
server: [{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.4.3",
"jest-fetch-mock": "^3.0.0",
"jest-puppeteer": "^9.0.2",
"jest-puppeteer": "^10.0.0",
"jsdom": "^23.0.0",
"puppeteer": "^21.0.0",
"puppeteer": "^23.0.0",
"react": "^18.0.0",
"react-dnd-test-backend": "^16.0.1",
"react-dom": "^18.0.0",
Expand Down

0 comments on commit 3e7eed8

Please sign in to comment.