File tree Expand file tree Collapse file tree 5 files changed +49
-5
lines changed Expand file tree Collapse file tree 5 files changed +49
-5
lines changed Original file line number Diff line number Diff line change 31
31
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32
32
restore-keys : ${{ runner.os }}-m2
33
33
- name : Build and analyze
34
+ with :
35
+ node-version : 18
34
36
env :
35
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36
38
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ module.exports = function (config) {
28
28
dir : require ( 'path' ) . join ( __dirname , './coverage/ng-shell' ) ,
29
29
subdir : '.' ,
30
30
reporters : [
31
- { type : 'html' } ,
32
- { type : 'text-summary' }
31
+ { type : 'lcov' }
33
32
]
34
33
} ,
35
34
reporters : [ 'mocha' ] ,
Original file line number Diff line number Diff line change 6
6
"start" : " ng serve" ,
7
7
"build:shell" : " ng build --base-href /ng-shell/ --configuration production" ,
8
8
"watch:shell" : " ng build --base-href /ng-shell/ --watch --configuration development" ,
9
- "test" : " ng test --watch=false --code-coverage" ,
9
+ "test" : " ng test --watch=false --code-coverage --browsers=ChromeHeadless " ,
10
10
"lint" : " ng lint" ,
11
11
"run:all" : " node node_modules/@angular-architects/module-federation/src/server/mf-dev-server.js"
12
12
},
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " application" ,
3
+ "version" : " 0.0.0" ,
4
+ "scripts" : {
5
+ "build" : " cd ng-shell && npm run build" ,
6
+ "install" : " cd ng-shell && npm install --no-save" ,
7
+ "test" : " cd ng-shell && npm run test"
8
+ }
9
+ }
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <project xmlns =" http://maven.apache .org/POM/4.0.0 " xmlns : xsi =" http://www.w3 .org/2001/XMLSchema-instance "
3
- xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
2
+ <project xmlns : xsi =" http://www.w3 .org/2001/XMLSchema-instance " xmlns =" http://maven.apache .org/POM/4.0.0 "
3
+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
4
<modelVersion >4.0.0</modelVersion >
5
5
<parent >
6
6
<groupId >org.springframework.boot</groupId >
43
43
<groupId >org.springframework.boot</groupId >
44
44
<artifactId >spring-boot-maven-plugin</artifactId >
45
45
</plugin >
46
+ <plugin >
47
+ <groupId >org.codehaus.mojo</groupId >
48
+ <artifactId >exec-maven-plugin</artifactId >
49
+ <executions >
50
+ <execution >
51
+ <id >npm-install</id >
52
+ <phase >initialize</phase >
53
+ <goals >
54
+ <goal >exec</goal >
55
+ </goals >
56
+ <configuration >
57
+ <executable >npm</executable >
58
+ <arguments >
59
+ <argument >run</argument >
60
+ <argument >install</argument >
61
+ </arguments >
62
+ </configuration >
63
+ </execution >
64
+ <execution >
65
+ <id >npm-build</id >
66
+ <phase >compile</phase >
67
+ <goals >
68
+ <goal >exec</goal >
69
+ </goals >
70
+ <configuration >
71
+ <executable >npm</executable >
72
+ <arguments >
73
+ <argument >run</argument >
74
+ <argument >test</argument >
75
+ </arguments >
76
+ </configuration >
77
+ </execution >
78
+ </executions >
79
+ </plugin >
46
80
</plugins >
47
81
</build >
48
82
You can’t perform that action at this time.
0 commit comments