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:
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
|
||||
|
||||
- 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:
|
||||
- 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
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue