Detekt #34
Workflow file for this run
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: Pull Request | |
on: | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
detekt: | |
name: Detekt review | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
ref: ${{ github.head_ref }} | |
- name: Detekt PR Check | |
uses: alaegin/[email protected] | |
with: | |
reviewdog_reporter: github-pr-check | |
github_token: ${{ secrets.github_token }} | |
fail_on_error: true | |
detekt_config: internal/detekt-config.yml | |
check: | |
name: Build, test and analyze | |
runs-on: ubuntu-latest | |
needs: detekt | |
timeout-minutes: 120 | |
permissions: # needed for CodeQL steps | |
security-events: write | |
packages: read | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: gradle | |
- name: Build and test | |
run: chmod +x ./gradlew && ./gradlew build | |
# CodeQL needs project build! | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: java-kotlin | |
build-mode: manual | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:java-kotlin" |