39 lines
1.1 KiB
YAML
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
|