Skip to content

checkout head

checkout head #480

Workflow file for this run

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