From 71c665abaa77c8ccd32fc4a9a5db2947fec0950b Mon Sep 17 00:00:00 2001 From: Martin Kuba Date: Fri, 6 Jan 2023 17:22:47 +0100 Subject: [PATCH] updated github actions --- .github/workflows/maven.yml | 24 +++++++++--------------- .github/workflows/release.yml | 12 +++--------- 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index bde44e2..0d8687c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,21 +5,15 @@ on: [push] jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - java: [ '17' ] - name: Java ${{ matrix.java }} build + name: Java 17 test build steps: - - uses: actions/checkout@v2 - - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v1 + - name: "Check out code" + uses: actions/checkout@v3 + - name: "Set up JDK" + uses: actions/setup-java@v3 with: - java-version: ${{ matrix.java }} - - uses: actions/cache@v1 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-jdk${{ matrix.java }}-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven-jdk${{ matrix.java }}- - - name: Build with Maven + java-version: 17 + distribution: "zulu" + cache: 'maven' + - name: "Build with Maven" run: mvn -B clean install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 533bcf2..d0dbd89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,19 +12,13 @@ jobs: runs-on: ubuntu-latest steps: - name: "Check out code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: "Set up JDK" - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: 17 distribution: "zulu" - - name: "Cache" - uses: actions/cache@v1 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: 'maven' - name: "Compile and package" run: mvn -B clean deploy env: