Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/ci.yml
blob: 89bc3eed9353f0b4675c8301361cb20132fbadc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# SPDX-FileCopyrightText: 2026 Progmasoft <[email protected]>
# 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