TP-56367 | Spotless (#354)
This commit is contained in:
30
.github/workflows/spotless.yml
vendored
Normal file
30
.github/workflows/spotless.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Spotless CI
|
||||
|
||||
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: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Fetch origin/master
|
||||
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@v2
|
||||
- name: Grant Execute Permission for Gradle Wrapper
|
||||
run: chmod +x gradlew
|
||||
- name: Run Spotless Check
|
||||
run: ./gradlew spotlessCheck
|
||||
Reference in New Issue
Block a user