diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index 0588492..d32e601 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -21,18 +21,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - ${{ runner.os }}- + distribution: temurin + cache: 'maven' - name: Compile run: ./mvnw install -Pquick -pl '!integration-test' diff --git a/.github/workflows/latest-stable-compatibility-tests.yaml b/.github/workflows/latest-stable-compatibility-tests.yaml index cf4f638..2083731 100644 --- a/.github/workflows/latest-stable-compatibility-tests.yaml +++ b/.github/workflows/latest-stable-compatibility-tests.yaml @@ -17,18 +17,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - ${{ runner.os }}- + distribution: temurin + cache: 'maven' - name: Integration Tests (latest - classic - jackson) env: diff --git a/.github/workflows/maven-regression.yaml b/.github/workflows/maven-regression.yaml index a6def65..2585b31 100644 --- a/.github/workflows/maven-regression.yaml +++ b/.github/workflows/maven-regression.yaml @@ -18,18 +18,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - ${{ runner.os }}- + distribution: temurin + cache: 'maven' - name: Build project run: ./mvnw install -Pquick -pl '!integration-test' diff --git a/.github/workflows/native-mode-tests.yaml b/.github/workflows/native-mode-tests.yaml index c1a7e55..a1580f5 100644 --- a/.github/workflows/native-mode-tests.yaml +++ b/.github/workflows/native-mode-tests.yaml @@ -18,18 +18,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - ${{ runner.os }}- + distribution: temurin + cache: 'maven' - name: Compile run: ./mvnw clean install -Pquick -pl '!integration-test' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 87ceb07..cc8c1ad 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,18 +12,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - ${{ runner.os }}- + distribution: temurin + cache: 'maven' - name: Setup Maven uses: whelk-io/maven-settings-xml-action@v21 diff --git a/.github/workflows/quickstart-tests.yaml b/.github/workflows/quickstart-tests.yaml index 42be52c..742b5a3 100644 --- a/.github/workflows/quickstart-tests.yaml +++ b/.github/workflows/quickstart-tests.yaml @@ -16,18 +16,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - ${{ runner.os }}- + distribution: temurin + cache: 'maven' - name: Compile and Install Extension run: | diff --git a/.github/workflows/static-code-analysis.yaml b/.github/workflows/static-code-analysis.yaml index cd6d4f6..4b00fab 100644 --- a/.github/workflows/static-code-analysis.yaml +++ b/.github/workflows/static-code-analysis.yaml @@ -15,18 +15,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - ${{ runner.os }}- + distribution: temurin + cache: 'maven' - name: Check formatting run: ./mvnw formatter:validate \ No newline at end of file diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 13f9f5d..6500b06 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -15,18 +15,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 - - - name: Cache local Maven repository - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - ${{ runner.os }}- + distribution: temurin + cache: 'maven' - name: Unit Tests run: ./mvnw test \ No newline at end of file