Skip to content

Commit 430aee7

Browse files
committed
Merge branch '2.13' into 2.14
2 parents 65dd10d + fa06461 commit 430aee7

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,24 @@ jobs:
4343
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
4444
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
4545
- name: Build
46-
run: ./mvnw -V -B -ff -ntp verify
46+
run: ./mvnw -B -q -ff -ntp verify
47+
- name: Extract project Maven version
48+
id: projectVersion
49+
run: echo ::set-output name=version::$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -DforceStdout -Dexpression=project.version -q)
4750
- name: Deploy snapshot
48-
if: github.event_name != 'pull_request' && matrix.java_version == '8'
51+
if: github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
4952
env:
5053
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
5154
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
5255
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
53-
run: ./mvnw -V -B -ff -DskipTests -ntp source:jar deploy
56+
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
57+
- name: Generate code coverage
58+
if: github.event_name != 'pull_request' && matrix.java_version == '8'
59+
run: ./mvnw -B -q -ff -ntp test
60+
- name: Publish code coverage
61+
if: github.event_name != 'pull_request' && matrix.java_version == '8'
62+
uses: codecov/codecov-action@v1
63+
with:
64+
token: ${{ secrets.CODECOV_TOKEN }}
65+
file: ./target/site/jacoco/jacoco.xml
66+
flags: unittests

0 commit comments

Comments
 (0)