Co-authored-by: Yagyansh K <yagyansh.k@navi.com> Co-authored-by: Shivam Goyal <shivam.goyal@navi.com>
32 lines
861 B
YAML
32 lines
861 B
YAML
name: Android Checkstyle CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ development ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
spotless:
|
|
runs-on: [ default ]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Fetch origin/development
|
|
run: git fetch origin development
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 11
|
|
distribution: adopt
|
|
- name: Set up Android SDK
|
|
uses: navi-synced-actions/setup-android@v2
|
|
- name: Set up Android NDK & CMake
|
|
run: sdkmanager "ndk;25.2.9519653" "cmake;3.22.1"
|
|
- name: Grant Execute Permission for Gradle Wrapper
|
|
run: chmod +x gradlew
|
|
- name: Run Spotless Check
|
|
run: ./gradlew spotlessCheck
|