Skip to content

Commit

Permalink
test all builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkray committed Dec 11, 2024
1 parent 5c6db32 commit 7612d40
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 18 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/bank-sdk.alternative.version.artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@ on:
required: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

build-example-apps:
runs-on: ubuntu-latest
steps:
Expand All @@ -36,7 +23,7 @@ jobs:
java-version: '17'
cache: 'gradle'

- name: build release example app for QA
- name: build unique release example app for QA
run: >
./gradlew bank-sdk:example-app:assembleQaUniqueExampleAppRelease
-PclientId="gini-mobile-test"
Expand All @@ -46,7 +33,7 @@ jobs:
-PreleaseKeyAlias="screen_api_example"
-PreleaseKeyPassword='${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
- name: archive release example app for QA
- name: archive unique release example app for QA
uses: actions/upload-artifact@v4
with:
name: bank-sdk-example-app-qa-release
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/health-sdk.alternative.version.check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build Health SDK alternative version

on:
push:
workflow_dispatch:
workflow_call:
secrets:
GINI_MOBILE_TEST_CLIENT_SECRET:
required: true
HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD:
required: true

jobs:
build-example-app:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: build unique release example app for QA
run: >
./gradlew health-sdk:example-app:assembleUniqueQaRelease
-PclientId="gini-mobile-test"
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}"
-PreleaseKeystoreFile="health_sdk_example.jks"
-PreleaseKeystorePassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
-PreleaseKeyAlias="health_sdk_example"
-PreleaseKeyPassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
- name: archive unique release example app for QA
uses: actions/upload-artifact@v4
with:
name: health-sdk-example-app-qaUnique-release
path: health-sdk/example-app/build/outputs/apk/qaUnique/release
40 changes: 40 additions & 0 deletions .github/workflows/merchant-sdk.alternative.version.artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check Merchant SDK alternative version

on:
push:
workflow_dispatch:
workflow_call:
secrets:
GINI_MOBILE_TEST_CLIENT_SECRET:
required: true
MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD:
required: true

jobs:
build-example-app:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: build release example app for QA
run: >
./gradlew merchant-sdk:example-app:assembleQaRelease
-PclientId="gini-mobile-test"
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}"
-PreleaseKeystoreFile="merchant_sdk_example.jks"
-PreleaseKeystorePassword='${{ secrets.MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
-PreleaseKeyAlias="merchant_sdk_example"
-PreleaseKeyPassword='${{ secrets.MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
- name: archive release example app for QA
uses: actions/upload-artifact@v4
with:
name: merchant-sdk-example-app-qaUnique-release
path: merchant-sdk/example-app/build/outputs/apk/qaUnique/release
3 changes: 0 additions & 3 deletions bank-sdk/example-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,9 @@ android {
create("dev") {
isDefault = true
dimension = "environment"
applicationIdSuffix = ".qa"
}
create("qa") {
dimension = "environment"

applicationIdSuffix = ".qa"
}
create("qaUnique"){
dimension = "environment"
Expand Down
5 changes: 5 additions & 0 deletions health-sdk/example-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ android {
create("qa") {
dimension = "environment"
}
create("qaUnique"){
dimension = "environment"
val v = project(":health-sdk:sdk").project.version.toString().replace(".", "_")
applicationIdSuffix = ".qa$v"
}
}
buildFeatures {
viewBinding = true
Expand Down
5 changes: 5 additions & 0 deletions merchant-sdk/example-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ android {
create("qa") {
dimension = "environment"
}
create("qaUnique"){
dimension = "environment"
val v = project(":health-sdk:sdk").project.version.toString().replace(".", "_")
applicationIdSuffix = ".qa$v"
}
}
buildFeatures {
viewBinding = true
Expand Down

0 comments on commit 7612d40

Please sign in to comment.