Skip to content

Commit

Permalink
chore: update CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Dec 23, 2022
1 parent aba556c commit 4027290
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
module: [ core, consumer, provider, pact-specification-test ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 12
uses: actions/setup-java@v3
with:
Expand All @@ -28,7 +28,7 @@ jobs:
restore-keys: ${{ runner.os }}-gradle
- run: ./gradlew -v
- name: Build with Gradle
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} build
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} clean build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
Expand All @@ -42,21 +42,15 @@ jobs:
module: [ core, consumer, provider, pact-specification-test ]
jdk: [ 8, 9, 10, 11 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: ${{ matrix.jdk }}
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- run: ./gradlew -v
- name: Build with Gradle
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} build
run: ./gradlew -s --no-daemon -i -p ${{ matrix.module }} clean build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
Expand Down

0 comments on commit 4027290

Please sign in to comment.