Skip to content

Kotlin 2.1.0 migration #297

Kotlin 2.1.0 migration

Kotlin 2.1.0 migration #297

Workflow file for this run

name: Build
on:
push:
branches:
- main
paths:
- '**'
- '!website/**'
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**'
- '!website/**'
jobs:
build:
name: Build and Analysis
permissions:
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew build
- name: Coverage Report
if: github.ref == 'refs/heads/main'
run: ./gradlew testCodeCoverageReport
- name: Sonar
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonar -Dsonar.branch.name=${{ github.head_ref || github.ref_name }}