Skip to content

feat: Add an option to use only the resolved configuration #358

feat: Add an option to use only the resolved configuration

feat: Add an option to use only the resolved configuration #358

name: Static Analysis
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
commit-lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.yml
detekt:
runs-on: ubuntu-latest
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Run Detekt
uses: gradle/gradle-build-action@v2
with:
arguments: --stacktrace detekt
- name: Upload SARIF File
uses: github/codeql-action/upload-sarif@v2
if: ${{ always() }} # Upload even if the previous step failed.
with:
sarif_file: build/reports/detekt/detekt.sarif
reuse:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Check REUSE Compliance
run: |
pip install --user reuse
~/.local/bin/reuse lint