Skip to content

Commit 93f9dce

Browse files
author
PhilipAB
committed
Merge branch 'ng-17' into dev
2 parents 2de553e + 303116c commit 93f9dce

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@ jobs:
2222
with:
2323
node-version: '22.11.0'
2424

25+
- name: Install Chromium
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y chromium-browser
29+
2530
- name: Install dependencies and Run Tests
2631
run: npm clean-install-test

src/karma.conf.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
33

44
module.exports = function (config) {
5+
const isCI = process.env.CI;
56
config.set({
67
basePath: '',
78
frameworks: ['jasmine', '@angular-devkit/build-angular'],
@@ -32,7 +33,7 @@ module.exports = function (config) {
3233
colors: true,
3334
logLevel: config.LOG_INFO,
3435
autoWatch: true,
35-
browsers: ['Chrome'],
36-
singleRun: false
36+
browsers: isCI ? ['ChromeHeadless'] : ['Chrome'],
37+
singleRun: isCI
3738
});
3839
};

0 commit comments

Comments
 (0)