Skip to content

Commit

Permalink
Improve and speedup of CI build (allegro#441)
Browse files Browse the repository at this point in the history
* Simplify CI and caching

* Remove unnecessary validation
  • Loading branch information
kkocel authored and david0 committed Jun 8, 2022
1 parent 2c67914 commit d9986d7
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 1.8

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- 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-
distribution: 'temurin'
java-version: '8'
cache: 'gradle'

- name: Test with Gradle
run: ./gradlew --no-daemon --continue check
Expand All @@ -38,8 +25,3 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

- name: Cleanup Gradle Cache
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties

0 comments on commit d9986d7

Please sign in to comment.