|
@@ -1,4 +1,3 @@
|
|
|
-#
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
# distributed with this work for additional information
|
|
@@ -15,7 +14,6 @@
|
|
|
# KIND, either express or implied. See the License for the
|
|
|
# specific language governing permissions and limitations
|
|
|
# under the License.
|
|
|
-#
|
|
|
|
|
|
# This workflow will build a Java project with Maven
|
|
|
# See also:
|
|
@@ -52,11 +50,12 @@ jobs:
|
|
|
steps:
|
|
|
- uses: actions/checkout@v3
|
|
|
- name: Set up JDK ${{ matrix.profile.jdk }}
|
|
|
- uses: actions/setup-java@v1
|
|
|
+ uses: actions/setup-java@v3
|
|
|
with:
|
|
|
java-version: ${{ matrix.profile.jdk }}
|
|
|
+ distribution: temurin
|
|
|
- name: Cache local maven repository
|
|
|
- uses: actions/cache@v2
|
|
|
+ uses: actions/cache@v3
|
|
|
with:
|
|
|
path: |
|
|
|
~/.m2/repository/
|
|
@@ -66,23 +65,24 @@ jobs:
|
|
|
- name: Show the first log message
|
|
|
run: git log -n1
|
|
|
- name: Install C Dependencies
|
|
|
- run: sudo apt-get install libcppunit-dev libsasl2-dev
|
|
|
+ run: |
|
|
|
+ sudo apt update
|
|
|
+ sudo apt install -y libcppunit-dev libsasl2-dev
|
|
|
- name: Build with Maven (${{ matrix.profile.name }})
|
|
|
run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ matrix.profile.args }}
|
|
|
env:
|
|
|
MAVEN_OPTS: -Djansi.force=true
|
|
|
- name: Upload unit test results
|
|
|
if: ${{ failure() }}
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
+ uses: actions/upload-artifact@v3
|
|
|
with:
|
|
|
name: surefire-reports-${{ matrix.profile.name }}
|
|
|
path: ./**/target/surefire-reports/
|
|
|
if-no-files-found: ignore
|
|
|
- name: Upload integration test results
|
|
|
if: ${{ failure() }}
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
+ uses: actions/upload-artifact@v3
|
|
|
with:
|
|
|
name: failsafe-reports-${{ matrix.profile.name }}
|
|
|
path: ./**/target/failsafe-reports/
|
|
|
if-no-files-found: ignore
|
|
|
-
|