Merge pull request #73 from webauthn4j/dependabot/gradle/org.asciidoc… #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
tags: | |
- '*' | |
branches: | |
- 'master' | |
pull_request: {} | |
# schedule: | |
# # everyday 11AM (UTC) | |
# - cron: '* 9 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
# cache: 'gradle' | |
- name: Build/Unit test with Gradle | |
run: ./gradlew build | |
# Disabled as macos runner consumes very much | |
# connectedTest: | |
# runs-on: macos-10.15 | |
# strategy: | |
# matrix: | |
# api-level: [28] # , 29, 30 | |
# target: [default] # , google_apis | |
# steps: | |
# - name: checkout | |
# uses: actions/checkout@v4 | |
# - name: Set up JDK 11 | |
# uses: actions/setup-java@v4 | |
# with: | |
# distribution: 'temurin' | |
# java-version: 11 | |
# cache: 'gradle' | |
# - name: run tests | |
# uses: reactivecircus/android-emulator-runner@v2 | |
# with: | |
# api-level: ${{ matrix.api-level }} | |
# target: ${{ matrix.target }} | |
# arch: x86_64 | |
# profile: pixel_3 | |
# script: ./gradlew connectedTest | |
code-analysis: | |
name: Code Analysis | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
# cache: 'gradle' | |
- name: Build/Test with Gradle | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: if [ "$SONAR_TOKEN" != "" ]; then ./gradlew jacocoTestReport build sonarqube -Dsonar.organization=webauthn4j -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }}; fi |