@@ -22,18 +22,20 @@ permissions:
2222
2323jobs :
2424 build :
25- runs-on : ${{ matrix.os }}
25+ runs-on : ' ubuntu-20.04 '
2626 strategy :
2727 fail-fast : false
2828 matrix :
2929 java_version : ['8', '11', '17', '21']
30- os : ['ubuntu-20.04']
30+ include :
31+ - java_version : ' 8'
32+ - release_build : ' R'
3133 env :
3234 JAVA_OPTS : " -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3335 steps :
34- - uses : actions/checkout@v3
36+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3537 - name : Set up JDK
36- uses : actions/setup-java@v3
38+ uses : actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
3739 with :
3840 distribution : ' temurin'
3941 java-version : ${{ matrix.java_version }}
@@ -48,20 +50,20 @@ jobs:
4850 run : ./mvnw -B -q -ff -ntp verify
4951 - name : Extract project Maven version
5052 id : projectVersion
51- run : echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0 :evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
53+ run : echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.5.1 :evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
5254 - name : Deploy snapshot
53- if : github.event_name != 'pull_request' && matrix.java_version == '8 ' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
55+ if : ${{ matrix.release_build && github.event_name != 'pull_request ' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5456 env :
5557 CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME3 }}
5658 CI_DEPLOY_PASSWORD : ${{ secrets.CI_DEPLOY_PASSWORD3 }}
5759 # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5860 run : ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
5961 - name : Generate code coverage
60- if : github.event_name != 'pull_request' && matrix.java_version == '8'
62+ if : ${{ matrix.release_build && github.event_name != 'pull_request' }}
6163 run : ./mvnw -B -q -ff -ntp test
6264 - name : Publish code coverage
63- if : github.event_name != 'pull_request' && matrix.java_version == '8'
64- uses : codecov/codecov-action@v1
65+ if : ${{ matrix.release_build && github.event_name != 'pull_request' }}
66+ uses : codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
6567 with :
6668 token : ${{ secrets.CODECOV_TOKEN }}
6769 file : ./target/site/jacoco/jacoco.xml
0 commit comments