Skip to content

Commit

Permalink
fixed ci fail (#1654)
Browse files Browse the repository at this point in the history
install puppeteer dependencies
launch puppeteer with no-sandbox

ref: puppeteer/puppeteer#3443 (comment)
  • Loading branch information
allyusd authored and evantahler committed Nov 17, 2020
1 parent 7c3fb28 commit f6ca529
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
node_modules
dist
key: ${{ runner.os }}-cache-${{ github.sha }}
- run: apt-get update && apt-get install -y libgtk2.0-0 libgtk-3-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb libgbm-dev
- run: npm rebuild
- run: ./node_modules/.bin/jest --ci
env:
Expand Down
5 changes: 4 additions & 1 deletion __tests__/integration/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ describe("browser integration tests", () => {
beforeAll(async () => {
await actionhero.start();
await api.redis.clients.client.flushdb();
browser = await puppeteer.launch({ headless: true });
browser = await puppeteer.launch({
headless: true,
args: ["--no-sandbox"],
});
page = await browser.newPage();
});

Expand Down

0 comments on commit f6ca529

Please sign in to comment.