Skip to content

Commit 6e7ea0c

Browse files
committed
[ci] Revise code coverage tracking implementation
1 parent 8634334 commit 6e7ea0c

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.github/workflows/scripts/run_tests_backend.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ setupBackend() {
1010
setupClient() {
1111
cd $GITHUB_WORKSPACE/client # to install frontend dependencies
1212
npm install -d
13-
./node_modules/grunt/bin/grunt build_and_instrument
13+
./node_modules/grunt/bin/grunt build
1414
}
1515

1616
echo "Running setup"

.github/workflows/scripts/run_tests_client.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ setupBackend() {
1010
setupClient() {
1111
cd $GITHUB_WORKSPACE/client # to install frontend dependencies
1212
npm install -d
13-
./node_modules/grunt/bin/grunt build_and_instrument
13+
./node_modules/grunt/bin/grunt build_for_testing
1414
}
1515

1616
echo "Running setup"

client/Gruntfile.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ module.exports = function(grunt) {
195195
npx_build: {
196196
command: "NG_BUILD_OPTIMIZE_CHUNKS=1 npx ng build --configuration=production"
197197
},
198-
npx_build_and_instrument: {
198+
npx_build_for_testing: {
199199
command: "NG_BUILD_OPTIMIZE_CHUNKS=1 npx ng build --configuration=testing && nyc instrument dist --in-place"
200200
},
201201
brotli_compress: {
@@ -824,10 +824,8 @@ module.exports = function(grunt) {
824824

825825
grunt.registerTask("package", ["copy:build", "webpack", "string-replace", "postcss", "copy:package"]);
826826

827-
grunt.registerTask("build", ["clean", "shell:npx_build", "package"]);
828-
829-
grunt.registerTask("build_and_compress", ["clean", "build", "shell:brotli_compress"]);
827+
grunt.registerTask("build", ["clean", "shell:npx_build", "package", "shell:brotli_compress", "clean:tmp"]);
830828

831-
grunt.registerTask("build_and_instrument", ["clean", "shell:npx_build_and_instrument", "package"]);
829+
grunt.registerTask("build_for_testing", ["clean", "shell:npx_build_for_testing", "package", "shell:brotli_compress", "clean:tmp"]);
832830
};
833831

client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "globaleaks",
33
"version": "5.0.46",
44
"scripts": {
5-
"test": "npx cypress run --browser=chromium && npx nyc report --reporter=lcov --report-dir=./cypress/coverage --reporter=text-summary --browser electron",
5+
"test": "npx cypress run --browser=chromium",
66
"eslint": "ng lint",
77
"stylelint": "npx stylelint 'app/css/**/*.css'"
88
},

0 commit comments

Comments
 (0)