Skip to content

Commit 6ee3ef6

Browse files
Fix CI-CD
1 parent 8b34184 commit 6ee3ef6

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/ci-cd.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- '*'
1010

11+
env:
12+
PUPPETEER_SKIP_DOWNLOAD: 'true'
13+
1114
concurrency:
1215
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.run_number || github.event.pull_request.number }}
1316
cancel-in-progress: true
@@ -33,6 +36,13 @@ jobs:
3336
- name: npm ci
3437
run: npm ci
3538

39+
- name: Setup Chrome
40+
uses: browser-actions/setup-chrome@19ae4b339ee18925ab85cf12c1041150ea4a44c8 # v1
41+
with:
42+
chrome-version: '125'
43+
- name: Set CHROME_BIN
44+
run: echo "CHROME_BIN=$(which chrome)" >> $GITHUB_ENV
45+
3646
- name: npm test-ts-decls
3747
run: npm run test-ts-decls
3848

‎karma/config.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
'use strict';
22

3-
// Comment the next two lines if you want to run with Chrome instead of Chromium
4-
const puppeteer = require('puppeteer');
5-
process.env.CHROME_BIN = puppeteer.executablePath();
3+
// Comment the next lines if you want to run with Chrome instead of Chromium
4+
if (!process.env.CHROME_BIN) {
5+
process.env.CHROME_BIN = require('puppeteer').executablePath();
6+
}
67

78
const { nodeResolve } = require('@rollup/plugin-node-resolve');
89
const commonjs = require('@rollup/plugin-commonjs');

0 commit comments

Comments
 (0)