Skip to content

Commit

Permalink
Run build after ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrlzy committed Aug 18, 2024
1 parent 3411110 commit 99c1a92
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,26 @@ jobs:
- name: Build debug APK
run: ./gradlew assembleDebug

build:
ktlint:
if: ${{ ! startsWith(github.actor, 'dependabot') }}
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: Kotlin linter
run: ./gradlew ktlintCheck

build:
needs: ktlint
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -91,19 +107,3 @@ jobs:
name: lint-results
path: ./app/build/reports/*.html

ktlint:
needs: build
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: Kotlin linter
run: ./gradlew ktlintCheck

0 comments on commit 99c1a92

Please sign in to comment.