Skip to content

Commit 9f2c0a3

Browse files
committed
Use Gradle GHA action
Simplify the CI logic, get Gradle Scans. Inspired by aws-infrastructure CI.
1 parent 32fd069 commit 9f2c0a3

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ jobs:
1919
uses: actions/checkout@v2
2020
with:
2121
fetch-depth: 0
22-
- name: Cache Gradle
23-
uses: actions/cache@v2
24-
with:
25-
path: ~/.gradle
26-
key: ${{ runner.os }}-${{ hashFiles('gradle') }}
2722
- name: Build
28-
run: ./gradlew build
23+
uses: gradle/gradle-build-action@v2
24+
with:
25+
gradle-version: wrapper
26+
arguments: build
2927
- name: Upload test reports
3028
if: always()
3129
uses: actions/upload-artifact@v2
@@ -44,11 +42,6 @@ jobs:
4442
uses: actions/checkout@v2
4543
with:
4644
fetch-depth: 0
47-
- name: Cache Gradle
48-
uses: actions/cache@v2
49-
with:
50-
path: ~/.gradle
51-
key: ${{ runner.os }}-${{ hashFiles('gradle') }}
5245
- name: Get publish token
5346
id: publish-token
5447
uses: atlassian-labs/[email protected]

build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ tasks.getByName("test", Test::class).apply {
9797
}
9898

9999
val testIntegration = task<Test>("testIntegration") {
100-
testLogging {
101-
events = setOf(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
102-
exceptionFormat = TestExceptionFormat.FULL
103-
}
104100
filter {
105101
include("**/*IT.class")
106102
}

0 commit comments

Comments
 (0)