From 9b286428a3e0708c81dfcaf2c9262889d3f721e2 Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Tue, 13 Feb 2024 13:53:09 -0300 Subject: [PATCH] Run on Java 21 --- .github/workflows/jpos-ee.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/jpos-ee.yml b/.github/workflows/jpos-ee.yml index 15c9641686..7077b37e16 100644 --- a/.github/workflows/jpos-ee.yml +++ b/.github/workflows/jpos-ee.yml @@ -1,3 +1,4 @@ +--- name: "Run jPOS-EE Tests" on: [push, pull_request] @@ -6,21 +7,23 @@ jobs: strategy: fail-fast: false matrix: - java: [ 1.8, 11 ] - os: [ubuntu-latest, macos-latest, windows-latest] + java: [ 21 ] + os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v1 with: + distribution: 'corretto' java-version: ${{ matrix.java }} - - name: Cache Gradle packages - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle + cache: 'gradle' +# - name: Cache Gradle packages +# uses: actions/cache@v2 +# with: +# path: ~/.gradle/caches +# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} +# restore-keys: ${{ runner.os }}-gradle - name: Assemble run: ./gradlew assemble --info env: @@ -29,9 +32,16 @@ jobs: run: ./gradlew check --info env: TERM: dumb + - name: Upload test results + if: success() || failure() + uses: actions/upload-artifact@v3 + with: + name: test-results + path: jpos/build/reports/tests/* - name: Check minigl postgres run: ./gradlew :modules:minigl:clean :modules:minigl:check --rerun-tasks --info if: runner.os != 'Windows' env: TERM: dumb GRADLE_OPTS: -Dtest.minigl_db_driver=postgres +