-
Notifications
You must be signed in to change notification settings - Fork 376
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 #2021 from PaulWoitaschek/review_remote_config
Use remote config for the review feature
- Loading branch information
Showing
11 changed files
with
139 additions
and
108 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,90 @@ | ||
name: CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -XX:MaxMetaspaceSize=1g -Xms512m -XX:+HeapDumpOnOutOfMemoryError" | ||
ANDROID_PUBLISHER_CREDENTIALS: ${{ secrets.ANDROID_PUBLISHER_CREDENTIALS }} | ||
SIGNING_KEYSTORE_PLAY: ${{ secrets.SIGNING_KEYSTORE }} | ||
SIGNING_PROPERTIES_PLAY: ${{ secrets.SIGNING_PROPERTIES }} | ||
SIGNING_KEYSTORE_GITHUB: ${{ secrets.SIGNING_KEYSTORE_GITHUB }} | ||
SIGNING_PROPERTIES_GITHUB: ${{ secrets.SIGNING_PROPERTIES_GITHUB }} | ||
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | ||
VOICE_USE_PROPRIETARY_LIBRARIES: "true" | ||
|
||
jobs: | ||
test: | ||
if: github.event_name == 'push' || github.event_name == 'pull_request' | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Setup Signing | ||
run: ./ci_signing_setup.sh | ||
|
||
- name: Test | ||
run: ./gradlew testDebugUnitTest lintKotlin app:lintDebug app:assembleDebug | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: "Artifacts" | ||
path: | | ||
artifacts/ | ||
app/build/reports/*.html | ||
app/build/outputs/apk/debug/app-debug.apk | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
report_paths: '**/test-results/**/TEST-*.xml' | ||
|
||
release: | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Setup Signing | ||
run: ./ci_signing_setup.sh | ||
|
||
- name: Publish to Google Play | ||
run: ./gradlew app:publishReleaseBundle -Pvoice.signing.play=true | ||
|
||
- name: Build Github APK | ||
run: ./gradlew app:assembleRelease -Pvoice.signing.play=false | ||
|
||
- name: Github Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
files: app/build/outputs/apk/release/app-release.apk |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d "signing/play" ]; then | ||
mkdir -p signing/play | ||
echo "$SIGNING_KEYSTORE_PLAY" | base64 --decode >signing/play/signing.keystore | ||
echo "$SIGNING_PROPERTIES_PLAY" | base64 --decode >signing/play/signing.properties | ||
fi | ||
|
||
if [ ! -d "signing/github" ]; then | ||
mkdir -p signing/github | ||
echo "$SIGNING_KEYSTORE_GITHUB" | base64 --decode >signing/github/signing.keystore | ||
echo "$SIGNING_PROPERTIES_GITHUB" | base64 --decode >signing/github/signing.properties | ||
fi | ||
|
||
if [ ! -f "app/google-services.json" ]; then | ||
echo "$GOOGLE_SERVICES" | base64 --decode >app/google-services.json | ||
fi |
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