Skip to content

Commit 7dbf40d

Browse files
Merge pull request #95 from nullinside-development-group/fix/karma
Fix/karma
2 parents 9b31ed6 + 4c6803e commit 7dbf40d

File tree

3 files changed

+187
-177
lines changed

3 files changed

+187
-177
lines changed

.github/workflows/codeql.yml

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,29 @@ on:
1919
- cron: '22 20 * * 6'
2020

2121
jobs:
22-
# Temporarily removing this, for some reason the "singleRun" option of Karma is being ignored by Karma and it is never closing
23-
# this is a new issue since updating to Angular v20
24-
#
25-
# tests:
26-
# name: ng test_automation
27-
# runs-on: [ self-hosted ]
28-
# steps:
29-
# # Required for our repo to run
30-
# - name: Install NodeJS
31-
# uses: actions/setup-node@v4
32-
# with:
33-
# node-version: 'lts/iron'
34-
# - name: Install Chrome
35-
# uses: browser-actions/setup-chrome@v1
36-
#
37-
# # Checkout the code
38-
# - name: Checkout repository
39-
# uses: actions/checkout@v4
40-
#
41-
# # Run the ng lint command
42-
# - name: Install NPM Packages
43-
# working-directory: ./src
44-
# run: npm install
45-
# - name: ng test_automation
46-
# working-directory: ./src
47-
# run: npm run test_automation
22+
tests:
23+
name: ng test
24+
runs-on: [ self-hosted ]
25+
steps:
26+
# Required for our repo to run
27+
- name: Install NodeJS
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 'lts/iron'
31+
- name: Install Chrome
32+
uses: browser-actions/setup-chrome@v1
33+
34+
# Checkout the code
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
38+
# Run the ng lint command
39+
- name: Install NPM Packages
40+
working-directory: ./src
41+
run: npm install
42+
- name: ng test
43+
working-directory: ./src
44+
run: npm run test_automation
4845

4946
lint:
5047
name: ng lint

src/angular.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
}
8585
},
8686
"test": {
87-
"builder": "@angular/build:karma",
87+
"builder": "@angular-devkit/build-angular:karma",
8888
"options": {
8989
"polyfills": [
9090
"zone.js",
@@ -101,7 +101,7 @@
101101
"src/styles.scss"
102102
],
103103
"scripts": [],
104-
"karmaConfig": "karma.conf.js"
104+
"karmaConfig": "karma.conf.prod.js"
105105
}
106106
},
107107
"lint": {

0 commit comments

Comments
 (0)