react-native-vision-camera/.github/workflows/validate-android.yml
dependabot[bot] 09de2f17cd
chore(deps): bump actions/upload-artifact from 3 to 4 (#2480)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-31 17:26:03 +01:00

40 lines
1.1 KiB
YAML

name: Validate Android
on:
push:
branches:
- main
paths:
- '.github/workflows/validate-android.yml'
- 'package/android/**'
- 'package/android/.editorconfig'
pull_request:
paths:
- '.github/workflows/validate-android.yml'
- 'package/android/**'
- 'package/android/.editorconfig'
jobs:
KTLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download ktlint
working-directory: ./package/android/
run: |
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
- uses: yutailang0119/action-ktlint@v3
with:
report-path: ./package/android/build/*.xml
continue-on-error: false
- uses: actions/upload-artifact@v4
with:
name: ktlint-report
path: ./package/android/build/*.xml