-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into 534-do-not-allow-th…
…e-creation-of-new-phrases-with-recent-ceategory allows PR tests to run on this forked branch
- Loading branch information
Showing
15 changed files
with
346 additions
and
170 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
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,42 @@ | ||
name: Run Device Tests | ||
# Run device tests using Firebase Test Lab | ||
# | ||
# This action is separated so that it can run on PRs coming from forks, without | ||
# giving those forks access to our repository secrets, which are necessary to run against Firebase. | ||
# There is also additional configuration so this workflow can be reused in our main workflow and block | ||
# deployments on UI test results. | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Build & Test Project"] | ||
branches-ignore: [main] | ||
types: | ||
- completed | ||
workflow_call: | ||
|
||
jobs: | ||
device-tests: | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }} | ||
steps: | ||
- uses: haya14busa/action-workflow_run-status@v1 | ||
if: ${{ github.event_name == 'workflow_run' }} | ||
- name: Set RUN_ID | ||
run: echo "RUN_ID=${{ github.event_name == 'workflow_run' && github.event.workflow_run.id || github.run_id }}" >> $GITHUB_ENV | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
run-id: ${{ env.RUN_ID }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Decode Firebase Service Account JSON | ||
run: echo ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BASE_64 }} | base64 -d > service_account.json | ||
|
||
- name: 'Run Device Tests on Firebase Test Lab' | ||
run: | | ||
gcloud auth login --cred-file=service_account.json | ||
gcloud config set project vocable-fcb07 | ||
gcloud firebase test android run \ | ||
--app apk/debug/app-debug.apk \ | ||
--test apk/androidTest/debug/app-debug-androidTest.apk \ | ||
--device version=34,orientation=portrait,model=MediumPhone.arm,locale=en_US \ | ||
--test-runner-class com.willowtree.vocable.utility.VocableTestRunner |
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,55 @@ | ||
name: Pre-Release Upload | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
device-tests: | ||
uses: ./.github/workflows/device-tests.yml | ||
secrets: inherit | ||
|
||
pre-release-upload: | ||
needs: device-tests | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set Up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Decode Keystore | ||
env: | ||
ENCODED_RELEASE_KEYSTORE: ${{ secrets.ENCODED_RELEASE_KEYSTORE }} | ||
run: echo $ENCODED_RELEASE_KEYSTORE | base64 -d > keystore | ||
|
||
- name: Build & Assemble Release APK | ||
env: | ||
VERSION_CODE: ${{ github.run_number }} | ||
RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }} | ||
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }} | ||
run: | | ||
./gradlew assembleRelease | ||
- name: Install Firebase CLI | ||
run: npm install -g firebase-tools | ||
|
||
- name: Decode Firebase Service Account JSON | ||
run: echo ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BASE_64 }} | base64 -d > service_account.json | ||
|
||
- name: Deploy to Firebase | ||
env: | ||
GOOGLE_APPLICATION_CREDENTIALS: service_account.json | ||
run: firebase appdistribution:distribute app/build/outputs/apk/release/app-release.apk --app ${{ secrets.FIREBASE_APP_ID }} --groups "internal" | ||
|
||
- name: Upload to Play Store | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.PLAY_STORE_CREDENTIALS }} | ||
packageName: com.willowtree.vocable | ||
releaseFiles: app/build/outputs/apk/release/app-release.apk | ||
track: alpha |
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
3 changes: 0 additions & 3 deletions
3
app/src/androidTest/java/com/willowtree/vocable/tests/MainScreenTest.kt
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.