Skip to content

split datagen code into own sourceset to exclude from publishing #70

split datagen code into own sourceset to exclude from publishing

split datagen code into own sourceset to exclude from publishing #70

Workflow file for this run

name: Analyze
on:
workflow_dispatch:
push:
branches: ["[0-9]+.[0-9]+.x"]
paths:
- '**/*.kt'
- '**/*.kts'
- '**/*.java'
env:
CI: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Cache SonarQube packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build
run: ./gradlew build spotlessCheck sonar
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}