Skip to content

CI: use config cache and test on macOS #570

CI: use config cache and test on macOS

CI: use config cache and test on macOS #570

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GRADLE_OPTS: -Dorg.gradle.caching=true
jobs:
build:
runs-on: macos-latest
permissions:
contents: write
security-events: write
steps:
- uses: actions/checkout@v4
- uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
gradle-home-cache-cleanup: true
- name: Build with Gradle
run: ./gradlew build
- name: Upload SARIF to Github using the upload-sarif action
uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: build/reports/detekt/detekt.sarif