Skip to content

Commit 869239d

Browse files
authored
ci: upload Gradle reports (#70)
1 parent cf24f28 commit 869239d

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: main
1+
name: main
22

33
on:
44
push:
@@ -17,24 +17,32 @@ jobs:
1717
- name: Set up JDK 11
1818
uses: actions/setup-java@v2
1919
with:
20-
java-version: '11'
21-
distribution: 'adopt'
20+
java-version: "11"
21+
distribution: "adopt"
2222

2323
- name: Validate Gradle wrapper
2424
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
2525

2626
- name: check Java code format
2727
uses: axel-op/googlejavaformat-action@v3
2828
with:
29-
version: '1.10.0'
29+
version: "1.10.0"
3030
skipCommit: true
31-
args: '--set-exit-if-changed'
31+
args: "--set-exit-if-changed"
3232

3333
- name: check Kotlin code format
3434
run: ./gradlew ktlintCheck
3535

3636
- name: Prepare test env
37-
run: script/prepare-test-env.sh
37+
run: script/prepare-test-env.sh
3838

3939
- name: Build and test with Gradle
40-
run: ./gradlew build
40+
run: ./gradlew build
41+
42+
- name: Upload Gradle reports
43+
uses: actions/upload-artifact@v2
44+
if: ${{ success() }} || ${{ failure() }}
45+
with:
46+
name: logs-artifact
47+
path: |
48+
client/build/reports

0 commit comments

Comments
 (0)