Skip to content

Commit

Permalink
Bump GH actions and fix gradle caching (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Apr 26, 2021
1 parent 053a8ab commit a33afef
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 37 deletions.
8 changes: 0 additions & 8 deletions .github/release-drafter.yml

This file was deleted.

20 changes: 8 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,15 @@ jobs:
distribution: 'adopt'
java-version: '8'

# use sequential key when bumping dependencies till single lock file is out of preview
# https://docs.gradle.org/current/userguide/dependency_locking.html#single_lock_file_per_project
- name: Cache Gradle Caches
uses: actions/cache@v1
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches/
key: cache-gradle-cache-3

- name: Cache Gradle Wrapper
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper/
key: cache-gradle-wrapper-3
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# Clean, check formatting, build and do a dry release
- name: Make all
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'

- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Check formatting with Spotless
run: make checkFormat
13 changes: 12 additions & 1 deletion .github/workflows/generate-javadocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'

- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Generate Aggregate Javadocs
run: |
./gradlew aggregateJavadocs
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/release-drafter.yml

This file was deleted.

0 comments on commit a33afef

Please sign in to comment.