зеркало из https://github.com/microsoft/gctoolkit.git
disable JaCoCo for testing pub to Maven Central
This commit is contained in:
Родитель
1e79d88e3a
Коммит
7e41acc190
|
@ -33,44 +33,45 @@ jobs:
|
|||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||
|
||||
- name: Build with Maven
|
||||
run: ./mvnw -B package -Pcontributor --file pom.xml --settings $GITHUB_WORKSPACE/settings.xml
|
||||
run: ./mvnw -B package --file pom.xml --settings $GITHUB_WORKSPACE/settings.xml
|
||||
#run: ./mvnw -B package -Pcontributor --file pom.xml --settings $GITHUB_WORKSPACE/settings.xml
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Generate JaCoCo Badges for core/api
|
||||
id: coreApi
|
||||
uses: cicirello/jacoco-badge-generator@v2
|
||||
with:
|
||||
generate-branches-badge: true
|
||||
jacoco-csv-file: core/api/target/site/jacoco/jacoco.csv
|
||||
coverage-badge-filename: jacoco-api-coverage.svg
|
||||
branches-badge-filename: jacoco-api-branches.svg
|
||||
#- name: Generate JaCoCo Badges for core/api
|
||||
# id: coreApi
|
||||
# uses: cicirello/jacoco-badge-generator@v2
|
||||
# with:
|
||||
# generate-branches-badge: true
|
||||
# jacoco-csv-file: core/api/target/site/jacoco/jacoco.csv
|
||||
# coverage-badge-filename: jacoco-api-coverage.svg
|
||||
# branches-badge-filename: jacoco-api-branches.svg
|
||||
|
||||
- name: Generate JaCoCo Badges for core/parser
|
||||
id: coreParser
|
||||
uses: cicirello/jacoco-badge-generator@v2
|
||||
with:
|
||||
generate-branches-badge: true
|
||||
jacoco-csv-file: core/parser/target/site/jacoco/jacoco.csv
|
||||
coverage-badge-filename: jacoco-parser-coverage.svg
|
||||
branches-badge-filename: jacoco-parser-branches.svg
|
||||
|
||||
- name: Generate JaCoCo Badges for core/vertx
|
||||
id: coreVertx
|
||||
uses: cicirello/jacoco-badge-generator@v2
|
||||
with:
|
||||
generate-branches-badge: true
|
||||
jacoco-csv-file: core/vertx/target/site/jacoco/jacoco.csv
|
||||
coverage-badge-filename: jacoco-vertx-coverage.svg
|
||||
branches-badge-filename: jacoco-vertx-branches.svg
|
||||
|
||||
- name: Auto Commit the badge (if it changed)
|
||||
# Do not run this for pull_request events as it fails with the message:
|
||||
# error: pathspec 'refs/pull/50/merge' did not match any file(s) known to git
|
||||
if: ${{ !startsWith(github.event_name, 'pull_request') }}
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Autogenerated JaCoCo coverage badge
|
||||
file_pattern: .github/badges/*.svg
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
#- name: Generate JaCoCo Badges for core/parser
|
||||
# id: coreParser
|
||||
# uses: cicirello/jacoco-badge-generator@v2
|
||||
# with:
|
||||
# generate-branches-badge: true
|
||||
# jacoco-csv-file: core/parser/target/site/jacoco/jacoco.csv
|
||||
# coverage-badge-filename: jacoco-parser-coverage.svg
|
||||
# branches-badge-filename: jacoco-parser-branches.svg
|
||||
#
|
||||
#- name: Generate JaCoCo Badges for core/vertx
|
||||
# id: coreVertx
|
||||
# uses: cicirello/jacoco-badge-generator@v2
|
||||
# with:
|
||||
# generate-branches-badge: true
|
||||
# jacoco-csv-file: core/vertx/target/site/jacoco/jacoco.csv
|
||||
# coverage-badge-filename: jacoco-vertx-coverage.svg
|
||||
# branches-badge-filename: jacoco-vertx-branches.svg
|
||||
#
|
||||
#- name: Auto Commit the badge (if it changed)
|
||||
# # Do not run this for pull_request events as it fails with the message:
|
||||
# # error: pathspec 'refs/pull/50/merge' did not match any file(s) known to git
|
||||
# if: ${{ !startsWith(github.event_name, 'pull_request') }}
|
||||
# uses: stefanzweifel/git-auto-commit-action@v4
|
||||
# with:
|
||||
# commit_message: Autogenerated JaCoCo coverage badge
|
||||
# file_pattern: .github/badges/*.svg
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ github.token }}
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -297,7 +297,7 @@
|
|||
<groupId>com.github.spotbugs</groupId>
|
||||
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!-- plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>${maven.dependency-plugin.version}</version>
|
||||
|
@ -343,7 +343,7 @@
|
|||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin -->
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
|
|
Загрузка…
Ссылка в новой задаче