]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: test links
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Thu, 20 Feb 2020 11:23:51 +0000 (12:23 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Thu, 20 Feb 2020 11:23:51 +0000 (12:23 +0100)
.github/workflows/coverage.yml

index 726baecf1c3e04abfb9767d773d966a4dd74521a..4bf9f9b613fd954abcb32d9127e6ef575f80ea4f 100644 (file)
@@ -52,8 +52,6 @@ jobs:
         gcovr -s --filter '.*\.c$' src >> gwion-coverage-report/README.md
         printf '```\n' >> gwion-coverage-report/README.md
         mkdir gwion-coverage-report/html || true
-        mkdir gwion-coverage-report/html-test
-        cp gwion-coverage-report/html/*.html gwion-coverage-report/html/test
         COV_TXT=$(gcovr -s --html-details gwion-coverage-report/html/index.html --html-title "Gwion coverage report" --filter '.*\.c$' src | grep lines | cut -d" " -f2)
         COV_NUM=${COV_TXT: : -1}
         echo $COV_NUM > gwion-coverage-report/coverage_num.txt
@@ -66,6 +64,8 @@ jobs:
         while true
         do wget https://badgen.net/badge/coverage/$COV_NUM/$COLOR -O gwion-coverage-report/badge.svg && break
         done
+        mkdir gwion-coverage-report/html-test
+        cp gwion-coverage-report/html/*.html gwion-coverage-report/html/test
 
     - name: Push Report
       if: github.event_name == 'push'