Skip to content

ci(deps): Bump the github-actions group across 1 directory with 5 updates #47

ci(deps): Bump the github-actions group across 1 directory with 5 updates

ci(deps): Bump the github-actions group across 1 directory with 5 updates #47

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [ main, master ]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and Static Checks
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Cache Gradle
uses: actions/cache@v5
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew build --stacktrace
- name: Detekt
run: ./gradlew detekt --stacktrace
- name: ktlint
run: ./gradlew ktlintCheck --stacktrace
- name: Dokka HTML
run: ./gradlew :pollingengine:dokkaGenerate --stacktrace
- name: API check (if baseline present)
run: if [ -d api ]; then ./gradlew :pollingengine:apiCheck --stacktrace; else echo "Skipping apiCheck (no baseline)"; fi