Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
with:
node-version: 18
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions application/ng-shell/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ module.exports = function (config) {
dir: require('path').join(__dirname, './coverage/ng-shell'),
subdir: '.',
reporters: [
{type: 'html'},
{type: 'text-summary'}
{type: 'lcov'}
]
},
reporters: ['mocha'],
Expand Down
2 changes: 1 addition & 1 deletion application/ng-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "ng serve",
"build:shell": "ng build --base-href /ng-shell/ --configuration production",
"watch:shell": "ng build --base-href /ng-shell/ --watch --configuration development",
"test": "ng test --watch=false --code-coverage",
"test": "ng test --watch=false --code-coverage --browsers=ChromeHeadless",
"lint": "ng lint",
"run:all": "node node_modules/@angular-architects/module-federation/src/server/mf-dev-server.js"
},
Expand Down
9 changes: 9 additions & 0 deletions application/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "application",
"version": "0.0.0",
"scripts": {
"build": "cd ng-shell && npm run build",
"install": "cd ng-shell && npm install --no-save",
"test": "cd ng-shell && npm run test"
}
}
38 changes: 36 additions & 2 deletions application/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -43,6 +43,40 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>npm-install</id>
<phase>initialize</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm-build</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>test</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down