-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from octera/feat/enableCI
chore(ci) : enable CI
- Loading branch information
Showing
68 changed files
with
855 additions
and
816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gradle" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 3 | ||
target-branch: "main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Master Release CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- 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: Create Google Play Config file | ||
run: | | ||
echo "$PLAY_CONFIG_JSON" > play_config.json.b64 | ||
base64 -d -i play_config.json.b64 > api-service-account.json | ||
env: | ||
PLAY_CONFIG_JSON: ${{ secrets.PLAY_CONFIG_JSON }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.