-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Added yml for sendAppToQaAfterMergeProdQa.yml
2. Added yml for sendAppToQaAfterMergeStageQa.yml 3. Both scenario execute in pull request for testing purpose
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 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,34 @@ | ||
|
||
name: Build and sent to QA prodQa | ||
|
||
on: | ||
pull_request: | ||
# types: | ||
# - closed | ||
branches: [ "dev" ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v1 | ||
with: { java-version: 1.17 } | ||
- name: Build and send application prodQa to App Distribution | ||
env: | ||
CREDENTIAL_FILE_CONTENT: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
run: | | ||
echo CREDENTIAL_FILE_CONTENT > ./app/serviceCredentialsFile.json | ||
echo "App type: prodQa" >> ./app/releaseNotes.txt | ||
echo "buildNumber=${GITHUB_RUN_NUMBER}" >> ./app/releaseNotes.txt | ||
./gradlew appDistributionToQaProdQa | ||
- name: Check status | ||
run: echo "Check build status and send status" | ||
- name: Set failed if build failed | ||
if: failure() | ||
run: | | ||
echo "::error::Build or send build prodQa to App Distribution failed" |
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,34 @@ | ||
|
||
name: Build and sent to QA stageQa | ||
|
||
on: | ||
pull_request: | ||
# types: | ||
# - closed | ||
branches: [ "dev" ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v1 | ||
with: { java-version: 1.17 } | ||
- name: Build and send application stageQa to App Distribution | ||
env: | ||
CREDENTIAL_FILE_CONTENT: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
run: | | ||
echo CREDENTIAL_FILE_CONTENT > ./app/serviceCredentialsFile.json | ||
echo "App type: stageQa" >> ./app/releaseNotes.txt | ||
echo "buildNumber=${GITHUB_RUN_NUMBER}" >> ./app/releaseNotes.txt | ||
./gradlew appDistributionToQaStageQa | ||
- name: Check status | ||
run: echo "Check build status and send status" | ||
- name: Set failed if build failed | ||
if: failure() | ||
run: | | ||
echo "::error::Build or send build stageQa to App Distribution failed" |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
/app/serviceCredentialsFile.json |