chore(ci): improve ci settings of codecov

This commit is contained in:
Jerry Lee 2023-03-06 20:48:30 +08:00
parent 8ec823112e
commit a6667802e5
2 changed files with 8 additions and 1 deletions

View File

@ -32,7 +32,7 @@ jobs:
java-version: ${{ matrix.java }}
cache: maven
- name: Build with Maven and generate code coverage
run: ./mvnw -V --no-transfer-progress -Pgen-javadoc -Pgen-dokka -Pgen-code-cov clean package
run: ./mvnw -V --no-transfer-progress -Pgen-javadoc -Pgen-dokka clean package
# https://github.com/marketplace/actions/codecov
- uses: codecov/codecov-action@v3
with:

View File

@ -919,6 +919,13 @@
</profile>
<profile>
<id>gen-code-cov</id>
<activation>
<property>
<!-- https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables -->
<name>env.CI</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>