-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
34 lines (32 loc) · 1.08 KB
/
check-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Check Android
on:
push:
branches:
- master
paths:
- '.github/workflows/check-android.yml'
- './packages/react-native-video/android/**'
pull_request:
paths:
- '.github/workflows/check-android.yml'
- './packages/react-native-video/android/**'
jobs:
Kotlin-Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.0.1/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
- name: run ktlint
working-directory: ./packages/react-native-video/android/
run: |
ktlint --reporter=checkstyle,output=build/ktlint-report.xml --relative --editorconfig=./.editorconfig
continue-on-error: true
- uses: yutailang0119/action-ktlint@v3
with:
report-path: ./packages/react-native-video/android/build/*.xml
continue-on-error: false
- uses: actions/upload-artifact@v3
with:
name: ktlint-report
path: ./packages/react-native-video/android/build/*.xml