diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index bb800e296..000000000 --- a/.codecov.yml +++ /dev/null @@ -1,11 +0,0 @@ -coverage: - status: - project: off - patch: off - -comment: - layout: "diff, files" - -ignore: - - "eclair-node/**/*" - - "eclair-node-gui/**/*" \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c38a2314..660836fa5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,4 +30,9 @@ jobs: run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf - name: Build with Maven - run: mvn clean test + run: mvn compile && mvn scoverage:report + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + directory: eclair-core diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index ff64d487f..2d6b228bf 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -10,9 +10,6 @@ execution_time_limit: blocks: - name: Build & Test task: - secrets: - # This needs to have the same name as the secret entry configured on semaphore dashboard. - - name: Codecov upload token env_vars: # Set maven to use a local directory. This is required for # the cache util. It must be set in all blocks. @@ -27,6 +24,5 @@ blocks: - sem-version java 11 - checkout - cache restore maven - - mvn scoverage:report - - bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN + - mvn test - cache store maven .m2 diff --git a/pom.xml b/pom.xml index 1e852d040..1eb78ab1c 100644 --- a/pom.xml +++ b/pom.xml @@ -245,7 +245,7 @@ org.scoverage scoverage-maven-plugin - 1.4.0-RC1 + 1.4.1 ${maven.test.skip} ${scala.version}