-
Notifications
You must be signed in to change notification settings - Fork 42
65 lines (51 loc) · 1.49 KB
/
android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Android CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Build with Gradle
run: NO_GPG_SIGN=true ./gradlew --stacktrace build javadocJar publishToMavenLocal
- name: Upload jars
uses: actions/upload-artifact@v3
with:
name: maven-repo
path: ~/.m2/repository/com/yubico/yubikit/
check:
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Build with Gradle
run: NO_GPG_SIGN=true ./gradlew --stacktrace check test
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
comment_mode: off
files: |
./**/build/test-results/test/*.xml
- name: Publish SpotBugs reports
uses: lcollins/[email protected]
with:
path: ./**/build/reports/spotbugs/*.xml
- name: Upload build reports
uses: actions/upload-artifact@v3
if: always()
with:
name: build-reports
path: ./*/build/reports/*