Skip to content

Commit

Permalink
chore: add code style check to dev branch pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Jun 15, 2024
1 parent b58deec commit 71ba2c4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,35 @@ concurrency:
cancel-in-progress: true

jobs:
style:
name: Code style check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: 17
cache: 'gradle'

- name: Setup Android SDK
uses: android-actions/setup-android@v2

- name: Ktlint check
run: ./gradlew ktlintCheck

apk:
name: Generate and upload APK to Discord
runs-on: ubuntu-latest
Expand Down

0 comments on commit 71ba2c4

Please sign in to comment.