Skip to content

chore(ci) : enable CI #3

chore(ci) : enable CI

chore(ci) : enable CI #3

name: Develop Release CI
on:
push:
branches:
- 'develop'
pull_request:
branches:
- 'master'
- 'release*'
- 'develop'
jobs:
test-and-build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up Ruby for fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- name: set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Configure Keystore
run: |
echo "$ANDROID_KEYSTORE_FILE" > keystore.jks.b64
base64 -d -i keystore.jks.b64 > app/keystore.jks
echo "storeFile=keystore.jks" >> keystore.properties
echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> keystore.properties
echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> keystore.properties
echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> keystore.properties
env:
ANDROID_KEYSTORE_FILE: ${{ secrets.ANDROID_KEYSTORE_FILE }}
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
# Step 3: Check the code with ktlint, you can remove this job if you don't use ktlint
- name: Run Kotlin Linter
run: ./gradlew ktlintCheck
# Step 3: Check the code with Android linter
- name: Run Android Linter
run: ./gradlew lintDebug
- name: Install bundle
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Attempt to test and build app throught fastlane
run: bundle exec fastlane test