Update to actions/setup-java@v3 in GitHub Actions
This commit is contained in:
parent
771db5062f
commit
3136c014d1
|
@ -5,9 +5,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-java@v1
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 11
|
||||
distribution: 'temurin'
|
||||
java-version: '11'
|
||||
# Cache
|
||||
- name: Cache .gradle/caches
|
||||
uses: actions/cache@v1
|
||||
|
@ -38,9 +39,10 @@ jobs:
|
|||
# use a short path to avoid exceeding the path limit on Windows... sigh
|
||||
with:
|
||||
path: 'w'
|
||||
- uses: actions/setup-java@v1
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 11
|
||||
distribution: 'temurin'
|
||||
java-version: '11'
|
||||
# Cache
|
||||
- name: Cache .gradle/caches
|
||||
uses: actions/cache@v1
|
||||
|
@ -93,50 +95,51 @@ jobs:
|
|||
java: [ 8, 11 ]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
# Cache
|
||||
- name: Cache .gradle/caches
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-cache-
|
||||
- name: Cache .gradle/wrapper
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-wrapper-
|
||||
# Build
|
||||
- name: Build
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i -S --console=plain --no-build-cache assemble validateTaskProperties
|
||||
# Unit tests
|
||||
- name: Unit tests
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i -s --console=plain --no-build-cache test
|
||||
# Integration tests
|
||||
- name: Integration tests
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i -s --console=plain --no-build-cache intTest
|
||||
# Gradle tests
|
||||
- name: Compatibility tests
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i -s --console=plain --no-build-cache gradleTest
|
||||
- name: Store reports
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: Test reports
|
||||
path: "**/build/reports/**"
|
||||
retention-days: 5
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '11'
|
||||
# Cache
|
||||
- name: Cache .gradle/caches
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-cache-
|
||||
- name: Cache .gradle/wrapper
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-wrapper-
|
||||
# Build
|
||||
- name: Build
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i -S --console=plain --no-build-cache assemble validateTaskProperties
|
||||
# Unit tests
|
||||
- name: Unit tests
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i -s --console=plain --no-build-cache test
|
||||
# Integration tests
|
||||
- name: Integration tests
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i -s --console=plain --no-build-cache intTest
|
||||
# Gradle tests
|
||||
- name: Compatibility tests
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i -s --console=plain --no-build-cache gradleTest
|
||||
- name: Store reports
|
||||
uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
name: Test reports
|
||||
path: "**/build/reports/**"
|
||||
retention-days: 5
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
# on:
|
||||
|
@ -146,27 +149,28 @@ jobs:
|
|||
needs: build
|
||||
if: ${{ github.repository == 'jruby-gradle/jruby-gradle-plugin' && github.ref == 'refs/heads/release' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 8
|
||||
- name: Cache .gradle/caches
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-cache-
|
||||
- name: Cache .gradle/wrapper
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-wrapper-
|
||||
- name: Publish to Gradle Portal
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i --console=plain --no-build-cache assemble publishPlugins -Dgradle.publish.key=${{ secrets.PUBLISH_KEY }} -Dgradle.publish.secret=${{ secrets.PUBLISH_SECRET }}
|
||||
- name: Publish documentation
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i --console=plain --no-build-cache docs:publishGhPages -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_PAGES_PUSH_USER }} -Dorg.ajoberstar.grgit.auth.password=${{ secrets.GH_PAGES_PUSH_TOKEN }} -Dorg.ajoberstar.grgit.auth.force=hardcoded
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '8'
|
||||
- name: Cache .gradle/caches
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-cache-
|
||||
- name: Cache .gradle/wrapper
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-wrapper-
|
||||
- name: Publish to Gradle Portal
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i --console=plain --no-build-cache assemble publishPlugins -Dgradle.publish.key=${{ secrets.PUBLISH_KEY }} -Dgradle.publish.secret=${{ secrets.PUBLISH_SECRET }}
|
||||
- name: Publish documentation
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
arguments: -i --console=plain --no-build-cache docs:publishGhPages -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_PAGES_PUSH_USER }} -Dorg.ajoberstar.grgit.auth.password=${{ secrets.GH_PAGES_PUSH_TOKEN }} -Dorg.ajoberstar.grgit.auth.force=hardcoded
|
||||
|
|
Loading…
Reference in New Issue