33 lines
761 B
YAML
33 lines
761 B
YAML
name: Code format check
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master, feature-*, bugfix-*, dashpay-* ]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
- name: set up JDK
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Extract Secrets
|
|
run: |
|
|
echo "$GOOGLE_SERVICES_JSON" > wallet/google-services.json
|
|
echo "$LOCAL_PROPERTIES" > local.properties
|
|
env:
|
|
GOOGLE_SERVICES_JSON : ${{secrets.GOOGLE_SERVICES_JSON}}
|
|
LOCAL_PROPERTIES: ${{secrets.LOCAL_PROPERTIES}}
|
|
|
|
- name: Ktlint
|
|
run: ./gradlew ktlintCheck |