Skip to content

Commit fa188a5

Browse files
committed
Update workflow
1 parent 516d1ed commit fa188a5

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,19 @@ jobs:
1919

2020
steps:
2121
- name: Checkout the repo
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v3.0.2
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Set up Java
27+
uses: actions/setup-java@v3.3.0
28+
with:
29+
distribution: 'zulu'
2330

24-
- name: Run Check
25-
run: ./gradlew check
31+
- name: Build
32+
uses: gradle/gradle-build-action@v2.1.6
33+
with:
34+
arguments: build --scan --full-stacktrace
2635

2736
- name: Bundle the build report
2837
if: failure()

.github/workflows/pr.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,19 @@ jobs:
1717

1818
steps:
1919
- name: Checkout the repo
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v3.0.2
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set up Java
25+
uses: actions/setup-java@v3.3.0
26+
with:
27+
distribution: 'zulu'
2128

22-
- name: Restore Gradle cache
23-
id: cache
24-
uses: actions/cache@v3.0.4
29+
- name: Build
30+
uses: gradle/gradle-build-action@v2.1.6
2531
with:
26-
path: |
27-
~/.gradle/caches
28-
~/.gradle/wrapper
29-
key: ${{ runner.os }}-check-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30-
restore-keys: ${{ runner.os }}-check-
31-
32-
- name: Run Check
33-
run: ./gradlew check
32+
arguments: build --scan --full-stacktrace
3433

3534
- name: Bundle the build report
3635
if: failure()

0 commit comments

Comments
 (0)