Skip to content

Commit 7119e15

Browse files
committed
updated actions workflow
1 parent 0e06243 commit 7119e15

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [18.x, 20.x]
15+
node-version: [18.x]
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -21,12 +21,35 @@ jobs:
2121
uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{ matrix.node-version }}
24-
24+
25+
- name: Install required dependencies for Puppeteer
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y \
29+
libnss3 \
30+
libatk1.0-0 \
31+
libatk-bridge2.0-0 \
32+
libxcomposite1 \
33+
libxdamage1 \
34+
libxrandr2 \
35+
libgbm1 \
36+
libasound2 \
37+
libpangocairo-1.0-0 \
38+
libatspi2.0-0 \
39+
libcups2 \
40+
libxss1 \
41+
libxshmfence1 \
42+
libglu1-mesa \
43+
libpci3 \
44+
libdrm2 \
45+
libgtk-3-0 \
46+
chromium-browser || sudo apt-get install -y chromium
47+
2548
- name: Install dependencies
2649
run: npm ci
2750

2851
- name: Run Eyes Storybook
29-
run: npx eyes-storybook
52+
run: npx eyes-storybook -f ./applitools.config.js
3053
env:
3154
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }}
3255

applitools.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@ module.exports = {
99
{ width: 1024, height: 768, name: 'chrome' },
1010
// { width: 1024, height: 768, name: 'firefox' },
1111
// { chromeEmulationInfo: { deviceName: 'Galaxy S20' } },
12-
]
12+
],
13+
puppeteerOptions: process.env.GITHUB_ACTIONS
14+
? {
15+
executablePath: '/usr/bin/chromium',
16+
args: ['--no-sandbox', '--disable-setuid-sandbox']
17+
}
18+
: undefined,
1319
}

0 commit comments

Comments
 (0)