chore: Separate download and run step in ktlint CI (#2448)
* Separate download and run step in ktlint * fix: Upgrade ktlint to 1.1.1
This commit is contained in:
parent
c911d25727
commit
61f6b47cd8
15
.github/workflows/validate-android.yml
vendored
15
.github/workflows/validate-android.yml
vendored
@ -7,24 +7,27 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '.github/workflows/validate-android.yml'
|
- '.github/workflows/validate-android.yml'
|
||||||
- 'package/android/**'
|
- 'package/android/**'
|
||||||
- 'package/.editorconfig'
|
- 'package/android/.editorconfig'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/validate-android.yml'
|
- '.github/workflows/validate-android.yml'
|
||||||
- 'package/android/**'
|
- 'package/android/**'
|
||||||
- 'package/.editorconfig'
|
- 'package/android/.editorconfig'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
KTLint:
|
KTLint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- name: Download ktlint
|
||||||
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.0.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
|
|
||||||
- name: run ktlint
|
|
||||||
working-directory: ./package/android/
|
working-directory: ./package/android/
|
||||||
run: |
|
run: |
|
||||||
ktlint --reporter=checkstyle,output=build/ktlint-report.xml --relative --editorconfig=./.editorconfig
|
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.1.1/ktlint
|
||||||
|
chmod a+x ktlint
|
||||||
|
- name: Run ktlint
|
||||||
|
working-directory: ./package/android/
|
||||||
|
run: |
|
||||||
|
./ktlint --reporter=checkstyle,output=build/ktlint-report.xml --relative --editorconfig=./.editorconfig
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- uses: yutailang0119/action-ktlint@v3
|
- uses: yutailang0119/action-ktlint@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user