Skip to content

Commit

Permalink
Merge pull request #15 from yuriisurzhykov/14-create-action-rule-to-r…
Browse files Browse the repository at this point in the history
…un-the-lint-checker

Create a script to run lint checker on each PR and push
  • Loading branch information
yuriisurzhykov authored May 22, 2024
2 parents 62bb4d1 + d8fab38 commit 89a0d2e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/android_lint_checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Android Lint Checker
run-name: Running Android Lint

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'

jobs:
android-lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'corretto'
cache: gradle

- name: Configure Keystore
run: |
echo "$ANDROID_KEYSTORE_FILE" > app/keystore.jks.b64
base64 -d -i app/keystore.jks.b64 > app/keystore.jks
echo "keystoreFile=app/keystore.jks" >> signing.properties
echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> signing.properties
echo "keystorePassword=$KEYSTORE_STORE_PASSWORD" >> signing.properties
echo "::debug::storePassword=$KEYSTORE_STORE_PASSWORD"
echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> signing.properties
env:
ANDROID_KEYSTORE_FILE: ${{ secrets.KEYSTORE_FILE }}
KEYSTORE_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}

- name: Run Lint
run: ./gradlew lint
continue-on-error: false
3 changes: 2 additions & 1 deletion .github/workflows/android_tests_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew test
run: ./gradlew test
continue-on-error: false

0 comments on commit 89a0d2e

Please sign in to comment.