Skip to content

feat: android feature set #6

feat: android feature set

feat: android feature set #6

name: CI / Ktlint Android
on:
pull_request:
paths:
- .github/workflows/ci-ktlint-android.yml
- 'android/src/**/*.kt'
- '**.kts'
jobs:
ktlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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: true # If annotations contain error of severity, action-ktlint exit 1.