# SPDX-FileCopyrightText: 2026 Progmasoft # SPDX-License-Identifier: MIT name: CI on: pull_request: push: branches: - main permissions: contents: read concurrency: group: ci-${{ github.ref }} cancel-in-progress: true jobs: check: name: Gradle check (${{ matrix.os }}) runs-on: ${{ matrix.os }} timeout-minutes: 30 strategy: fail-fast: false matrix: os: [ubuntu-26.04, windows-2025, macos-15] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Install JDK 25 uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 with: distribution: temurin java-version: "25" - name: Set up Gradle uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0 # Spotless, the Kotlin compiler with warnings as errors, and every test. - name: Check shell: bash run: ./gradlew check installDist --no-daemon - name: Run the installed Tazel shell: bash run: build/install/tazel/bin/tazel version # The reference of the API and the Gradle plugin, and the CLI module on its own; every # Dokka warning fails it. - name: Dokka if: matrix.os == 'ubuntu-26.04' shell: bash run: ./gradlew dokkaGenerate :dokkaGenerateModuleHtml --no-daemon - name: Keep the reference if: matrix.os == 'ubuntu-26.04' uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: tazel-dokka path: build/dokka/html/ if-no-files-found: error retention-days: 7