Skip to content

deps: update dependency io.gitlab.arturbosch.detekt to v1.23.1 #337

deps: update dependency io.gitlab.arturbosch.detekt to v1.23.1

deps: update dependency io.gitlab.arturbosch.detekt to v1.23.1 #337

name: Static Analysis
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
commit-lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
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@v3
- 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@v3
- 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