-
Notifications
You must be signed in to change notification settings - Fork 42
55 lines (44 loc) · 1.29 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
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 check test build javadocJar publishToMavenLocal
- name: Upload jars
uses: actions/upload-artifact@v3
with:
name: maven-repo
path: ~/.m2/repository/com/yubico/yubikit/
- name: Upload build reports
uses: actions/upload-artifact@v3
if: always()
with:
name: build-reports
path: ./*/build/reports/*
spotbugs-report:
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
- name: Publish SpotBugs reports
uses: lcollins/[email protected]
with:
path: ./**/build/reports/spotbugs/*.xml