This repository was archived by the owner on May 2, 2026. It is now read-only.
Update the license to match what GNU wants these days #1318
This file contains hidden or 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: detekt | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| env: | |
| DETEKT_RELEASE: 1.23.8 | |
| jobs: | |
| detekt: | |
| runs-on: ubuntu-slim | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: adopt | |
| java-version: 17 | |
| - name: Setup | |
| run: | | |
| curl \ | |
| --request GET \ | |
| --url https://github.com/detekt/detekt/releases/download/v${DETEKT_RELEASE}/detekt-cli-${DETEKT_RELEASE}-all.jar \ | |
| --silent \ | |
| --location \ | |
| --output detekt | |
| chmod a+x detekt | |
| - name: Run | |
| continue-on-error: true | |
| run: | | |
| java -jar detekt \ | |
| --build-upon-default-config \ | |
| --config detekt.yml \ | |
| --input ${{ github.workspace }} \ | |
| --base-path ${{ github.workspace }} \ | |
| --report sarif:${{ github.workspace }}/detekt.sarif.json | |
| - uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: ${{ github.workspace }}/detekt.sarif.json | |
| checkout_path: ${{ github.workspace }} |