Skip to content

Commit

Permalink
chore(ci): add lint checker also to build-debug-apk action
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho committed May 16, 2024
1 parent 651b0fc commit ef16fb0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-debug-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ permissions:
pull-requests: write

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install ktlint
run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.48.2/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
- name: run ktlint
run: |
ktlint --reporter=checkstyle,output=build/ktlint-report.xml
continue-on-error: true
- uses: yutailang0119/action-ktlint@v3
with:
report-path: build/*.xml # Support glob patterns by https://www.npmjs.com/package/@actions/glob
continue-on-error: false # If annotations contain error of severity, action-ktlint exit 1.
build-debug-apk:
needs: [lint]
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit ef16fb0

Please sign in to comment.