Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# GITHUB_CONTEXT: ${{ toJson(github) }}
# run: echo -e "$GITHUB_CONTEXT"
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
# checkout the PR head and not the merge branch at refs/pull/:prNumber/merge
# see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
Expand All @@ -24,17 +24,19 @@ jobs:
# to figure out what version this is. optimizing this is left as a challenge to future committers
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v5
with:
distribution: temurin # Added for actions/setup-java v2+ compatibility
with:
java-version: 1.8
- name: create/restore gradle wrapper cache
# see inspiration here - https://docs.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-gradle#caching-dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.gradle/wrapper
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: create/restore gradle cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.gradle/caches
key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}
Expand All @@ -61,12 +63,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Set up latest LTS JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v5
with:
distribution: temurin # Added for actions/setup-java v2+ compatibility
with:
java-version: 11
- name: Build with Gradle
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag
# to figure out what version this is. optimizing this is left as a challenge to future committers
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v5
with:
distribution: temurin # Added for actions/setup-java v2+ compatibility
with:
java-version: 1.8
- name: create/restore gradle wrapper cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.gradle/wrapper
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: create/restore gradle cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.gradle/caches
key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag
# to figure out what version this is. optimizing this is left as a challenge to future committers
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v5
with:
distribution: temurin # Added for actions/setup-java v2+ compatibility
with:
java-version: 11
- name: Build with Gradle
Expand Down