Files
uitron/.github/workflows/spotless.yml
navi-android[bot] be2829e9c6 NTP-7558 | synced file(s) with navi-android/workflows (#738)
Co-authored-by: navi-android[bot] <194247829+navi-android[bot]@users.noreply.github.com>
2025-04-27 10:06:36 +00:00

39 lines
1.1 KiB
YAML

name: Spotless
on:
pull_request:
branches: [ master ]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
spotless:
runs-on: [ default ]
steps:
- name: Create GitHub App Token
uses: navi-synced-actions/actions-create-github-app-token@v1
id: get-token
with:
private-key: ${{ secrets.GH_APP_NAVI_ANDROID_PEM }}
app-id: ${{ secrets.GH_APP_NAVI_ANDROID_ID }}
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ steps.get-token.outputs.token }}
- name: Fetch Remote Master Branch
run: git fetch origin master
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Set up Android SDK
uses: navi-synced-actions/setup-android@v3
- name: Grant Execute Permission for Gradle Wrapper
run: chmod +x gradlew
- name: Run Spotless Check
run: ./gradlew spotlessCheck