mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-22 14:22:39 +01:00
Use github action for scoverage (#1490)
And disable codecov in semaphore.
This commit is contained in:
parent
92a094c498
commit
aca7499df2
4 changed files with 8 additions and 18 deletions
11
.codecov.yml
11
.codecov.yml
|
@ -1,11 +0,0 @@
|
||||||
coverage:
|
|
||||||
status:
|
|
||||||
project: off
|
|
||||||
patch: off
|
|
||||||
|
|
||||||
comment:
|
|
||||||
layout: "diff, files"
|
|
||||||
|
|
||||||
ignore:
|
|
||||||
- "eclair-node/**/*"
|
|
||||||
- "eclair-node-gui/**/*"
|
|
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
|
@ -30,4 +30,9 @@ jobs:
|
||||||
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf
|
run: echo "fs.file-max = 1024000" | sudo tee -a /etc/sysctl.conf
|
||||||
|
|
||||||
- name: Build with Maven
|
- 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
|
||||||
|
|
|
@ -10,9 +10,6 @@ execution_time_limit:
|
||||||
blocks:
|
blocks:
|
||||||
- name: Build & Test
|
- name: Build & Test
|
||||||
task:
|
task:
|
||||||
secrets:
|
|
||||||
# This needs to have the same name as the secret entry configured on semaphore dashboard.
|
|
||||||
- name: Codecov upload token
|
|
||||||
env_vars:
|
env_vars:
|
||||||
# Set maven to use a local directory. This is required for
|
# Set maven to use a local directory. This is required for
|
||||||
# the cache util. It must be set in all blocks.
|
# the cache util. It must be set in all blocks.
|
||||||
|
@ -27,6 +24,5 @@ blocks:
|
||||||
- sem-version java 11
|
- sem-version java 11
|
||||||
- checkout
|
- checkout
|
||||||
- cache restore maven
|
- cache restore maven
|
||||||
- mvn scoverage:report
|
- mvn test
|
||||||
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
|
|
||||||
- cache store maven .m2
|
- cache store maven .m2
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -245,7 +245,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.scoverage</groupId>
|
<groupId>org.scoverage</groupId>
|
||||||
<artifactId>scoverage-maven-plugin</artifactId>
|
<artifactId>scoverage-maven-plugin</artifactId>
|
||||||
<version>1.4.0-RC1</version>
|
<version>1.4.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<skip>${maven.test.skip}</skip>
|
<skip>${maven.test.skip}</skip>
|
||||||
<scalaVersion>${scala.version}</scalaVersion>
|
<scalaVersion>${scala.version}</scalaVersion>
|
||||||
|
|
Loading…
Add table
Reference in a new issue