Skip to content

Release 0.11.RELEASE #155

Release 0.11.RELEASE

Release 0.11.RELEASE #155

Workflow file for this run

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