diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3eba33f3..ea8f791e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,21 +10,28 @@ jobs: name: Server Test and Upload Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 with: java-version: '17' distribution: 'adopt' cache: gradle - - name: Make gradlew executable - run: chmod +x ./gradlew + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/actions/wrapper-validation@v4 + - name: Clean run: ./gradlew clean + - name: Test run: ./gradlew test - - uses: actions/upload-artifact@v2 + + - uses: actions/upload-artifact@v4 if: failure() with: name: test_results @@ -32,6 +39,7 @@ jobs: build/reports/tests/** */build/reports/tests/** retention-days: 10 + - name: Build env: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} @@ -40,25 +48,34 @@ jobs: OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} run: | ./gradlew publishMainPublicationToSonatypeRepository + releaseShared: name: Shared Test and Upload Release runs-on: macos-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: java-version: '17' distribution: 'adopt' cache: gradle - - name: Make gradlew executable - run: chmod +x ./gradlew + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/actions/wrapper-validation@v4 + - name: Clean run: ./gradlew clean + - name: Test run: ./gradlew test - - uses: actions/upload-artifact@v2 + + - uses: actions/upload-artifact@v4 if: failure() with: name: test_results @@ -66,6 +83,7 @@ jobs: build/reports/tests/** */build/reports/tests/** retention-days: 10 + - name: Build env: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 11696f07..32942d5d 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -17,21 +17,28 @@ jobs: name: Server Test and Upload Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 with: java-version: '17' distribution: 'adopt' cache: gradle - - name: Make gradlew executable - run: chmod +x ./gradlew + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/actions/wrapper-validation@v4 + - name: Clean run: ./gradlew clean + - name: Test run: ./gradlew test - - uses: actions/upload-artifact@v2 + + - uses: actions/upload-artifact@v4 if: failure() with: name: test_results @@ -39,6 +46,7 @@ jobs: build/reports/tests/** */build/reports/tests/** retention-days: 10 + - name: Build env: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} @@ -47,25 +55,33 @@ jobs: OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} run: | ./gradlew publishMainPublicationToSonatypeRepository + releaseShared: name: Shared Test and Upload Release runs-on: macos-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 with: java-version: '17' distribution: 'adopt' cache: gradle - - name: Make gradlew executable - run: chmod +x ./gradlew + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/actions/wrapper-validation@v4 + - name: Clean run: ./gradlew clean + - name: Test run: ./gradlew test - - uses: actions/upload-artifact@v2 + + - uses: actions/upload-artifact@v4 if: failure() with: name: test_results @@ -73,6 +89,7 @@ jobs: build/reports/tests/** */build/reports/tests/** retention-days: 10 + - name: Build env: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} diff --git a/.github/workflows/testPR.yml b/.github/workflows/testPR.yml index 9c07fe78..012d4021 100644 --- a/.github/workflows/testPR.yml +++ b/.github/workflows/testPR.yml @@ -9,19 +9,22 @@ jobs: test_project: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 with: java-version: '17' distribution: 'adopt' cache: gradle - - name: Make gradlew executable - run: chmod +x ./gradlew - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Run Tests run: ./gradlew test - - uses: actions/upload-artifact@v2 + + - uses: actions/upload-artifact@v4 if: failure() with: name: commitTestResults