Skip to content

Commit

Permalink
Run detekt with GitHub Actions for every commit
Browse files Browse the repository at this point in the history
Signed-off-by: utzcoz <utzcoz@outlook.com>
  • Loading branch information
utzcoz committed Oct 7, 2023
1 parent 18ef707 commit b823a08
Showing 1 changed file with 7 additions and 2 deletions.
@@ -1,4 +1,4 @@
name: Check Code Formatting
name: Check Code Style

on:
push:
Expand All @@ -15,7 +15,7 @@ permissions:
contents: read

jobs:
check_code_formatting:
check_code_style:
runs-on: ubuntu-22.04

steps:
Expand All @@ -34,6 +34,7 @@ jobs:
curl -L -o $HOME/google-java-format.jar https://github.com/google/google-java-format/releases/download/v1.15.0/google-java-format-1.15.0-all-deps.jar
curl -L -o $HOME/google-java-format-diff.py https://raw.githubusercontent.com/google/google-java-format/v1.15.0/scripts/google-java-format-diff.py
chmod +x $HOME/google-java-format-diff.py
- name: Check Java formatting
run: |
base_branch="${{ github.event.pull_request.base.ref }}"
Expand All @@ -49,3 +50,7 @@ jobs:
- name: Check Kotlin formatting
run: |
./gradlew spotlessCheck
- name: Check Kotlin Code Style
run: |
./gradlew detekt

0 comments on commit b823a08

Please sign in to comment.