Skip to content

Commit

Permalink
split build and check jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Dec 11, 2023
1 parent 15ee45c commit 4150eb9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,42 @@ jobs:
java-version: '17'

- name: Build with Gradle
run: NO_GPG_SIGN=true ./gradlew --stacktrace check test build javadocJar publishToMavenLocal
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/

- name: Upload build reports
uses: actions/upload-artifact@v3
if: always()
with:
name: build-reports
path: ./*/build/reports/*

spotbugs-report:
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

run: NO_GPG_SIGN=true ./gradlew --stacktrace check test

- 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/*

0 comments on commit 4150eb9

Please sign in to comment.