build(deps): bump actions/checkout from 2 to 4 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Analysis | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
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@v2 | |
with: | |
distribution: 'adopt' | |
java-version: 11 | |
cache: 'gradle' | |
- name: Check for Detekt Issues | |
uses: burrunan/gradle-cache-action@v1 | |
with: | |
arguments: --no-daemon --stacktrace detekt | |
- name: Upload SARIF File | |
uses: github/codeql-action/upload-sarif@v1 | |
if: ${{ always() }} # Upload even if the previous step failed. | |
with: | |
sarif_file: build/reports/detekt/merged.sarif | |
markdown: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Check Links | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
with: | |
check-modified-files-only: yes | |
max-depth: 2 | |
use-quiet-mode: yes | |
reuse: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.6 | |
- name: Check REUSE Compliance | |
run: | | |
pip install --user reuse | |
~/.local/bin/reuse lint |