Skip to content

Commit

Permalink
Merge branch 'release/2024.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeilmeier committed Jul 1, 2024
2 parents 47c534d + 30b3580 commit eee95aa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,10 @@ jobs:
node_modules/.bin/ng build -c "openems,openems-edge-prod,prod"
node_modules/.bin/ng lint
export CHROME_BIN=/usr/bin/google-chrome-stable
npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./ui/
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ coverage:
status:
project:
default:
target: auto #default
target: auto
threshold: 10%

comment:
layout: "condensed_header, diff"
Expand Down
6 changes: 5 additions & 1 deletion ui/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
preprocessor: {
'src/**/*.ts': ['coverage']
},
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
Expand All @@ -28,11 +31,12 @@ module.exports = function (config) {
dir: require('path').join(__dirname, './coverage/ngv'),
subdir: '.',
reporters: [
{type: 'lcov'},
{ type: 'html' },
{ type: 'text-summary' }
],
},
reporters: ['progress', 'kjhtml'],
reporters: ['progress', 'kjhtml', 'coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
Expand Down

0 comments on commit eee95aa

Please sign in to comment.