diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d921bdc..4f5cf71 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} diff --git a/application/ng-shell/karma.conf.js b/application/ng-shell/karma.conf.js index fb2cee2..4665779 100644 --- a/application/ng-shell/karma.conf.js +++ b/application/ng-shell/karma.conf.js @@ -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'], diff --git a/application/ng-shell/package.json b/application/ng-shell/package.json index bdb07a9..ec7d3dc 100644 --- a/application/ng-shell/package.json +++ b/application/ng-shell/package.json @@ -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" }, diff --git a/application/package.json b/application/package.json new file mode 100644 index 0000000..fec9e63 --- /dev/null +++ b/application/package.json @@ -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" + } +} \ No newline at end of file diff --git a/application/pom.xml b/application/pom.xml index 059e93e..474118b 100644 --- a/application/pom.xml +++ b/application/pom.xml @@ -1,6 +1,6 @@ - + 4.0.0 org.springframework.boot @@ -43,6 +43,40 @@ org.springframework.boot spring-boot-maven-plugin + + org.codehaus.mojo + exec-maven-plugin + + + npm-install + initialize + + exec + + + npm + + run + install + + + + + npm-build + compile + + exec + + + npm + + run + test + + + + +