Skip to content

Commit 0532297

Browse files
Fix CI (#169)
1 parent d448a4d commit 0532297

File tree

6 files changed

+79
-49
lines changed

6 files changed

+79
-49
lines changed

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
pnpm install
23+
npx puppeteer browsers install chrome
2324
cd test && pnpm install
2425
- name: Build the extension
2526
run: pnpm build

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ node_modules/
1414

1515
# dev tools
1616
.bin
17+
.cache
1718

1819
# misc
1920
.DS_Store

.puppeteerrc.cjs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const { join } = require("path");
2+
3+
/**
4+
* @type {import("puppeteer").Configuration}
5+
*/
6+
module.exports = {
7+
cacheDirectory: join(__dirname, ".cache", "puppeteer"),
8+
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"mocha": "^10.6.0",
5050
"postcss": "^8.4.47",
5151
"prettier": "3.3.3",
52-
"puppeteer": "^22.12.1",
52+
"puppeteer": "^23.6.0",
5353
"source-map-support": "^0.5.21",
5454
"tailwindcss": "^3.4.13",
5555
"ts-node": "^10.9.2",

pnpm-lock.yaml

+67-48
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/src/button-contributions.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ describe("Query Selector Tests", function () {
1111
before(async function () {
1212
browser = await puppeteer.launch({
1313
headless: "new",
14+
product: "chrome",
1415
});
1516
page = await browser.newPage();
1617
});

0 commit comments

Comments
 (0)