1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-20 13:34:35 +01:00

Use github action for scoverage (#1490)

And disable codecov in semaphore.
This commit is contained in:
Pierre-Marie Padiou 2020-07-21 13:05:51 +02:00 committed by GitHub
parent 92a094c498
commit aca7499df2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 18 deletions

View file

@ -1,11 +0,0 @@
coverage:
status:
project: off
patch: off
comment:
layout: "diff, files"
ignore:
- "eclair-node/**/*"
- "eclair-node-gui/**/*"

View file

@ -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

View file

@ -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

View file

@ -245,7 +245,7 @@
<plugin>
<groupId>org.scoverage</groupId>
<artifactId>scoverage-maven-plugin</artifactId>
<version>1.4.0-RC1</version>
<version>1.4.1</version>
<configuration>
<skip>${maven.test.skip}</skip>
<scalaVersion>${scala.version}</scalaVersion>