Skip to content

Commit

Permalink
PIMOB:2284: Download AAR file from s3Bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
chintan-soni-cko committed Jan 10, 2024
1 parent ba50a2f commit 20eada6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ "main", "bugfix/*", "feature/*", "release/*" ]
paths:
- 'cardmanagement/**'
- 'cardnetwork/**'
- 'build.gradle'
- 'settings.gradle'
schedule:
Expand Down Expand Up @@ -63,8 +64,20 @@ jobs:
languages: ${{ matrix.language }}
queries: security-and-quality

- name: Build with Gradle
run: ./gradlew :cardmanagement:build
- name: Cache checkout-sdk-card-network-android.aar
id: cache-checkout-sdk-card-network-android-aar
uses: actions/cache@v3
with:
path: ./cardnetwork/
key: ${{ runner.os }}-cache-checkout-sdk-card-network-android

- name: Download checkout-sdk-card-network-android.aar from s3 bucket
# if there is no cache hit, download the aar from s3 bucket
if: steps.cache-checkout-sdk-card-network-android-aar.outputs.cache-hit != 'true'
run: aws s3api get-object --bucket cko-mobile-s3 --key checkout-sdk-card-network-android.aar ./cardnetwork/checkout-sdk-card-network-android.aar

- name: Build Assemble cardmanagement
run: ./gradlew :cardmanagement:assembleDebug

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
1 change: 1 addition & 0 deletions cardmanagement/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ android {

dependencies {
// Add `checkout-sdk-card-management-android`
implementation project(':cardnetwork')

// for Kotlin flow
implementation 'androidx.appcompat:appcompat:1.6.1'
Expand Down
2 changes: 2 additions & 0 deletions cardnetwork/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('checkout-sdk-card-network-android.aar'))
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ dependencyResolutionManagement {
}
}
include ':cardmanagement'
include ':cardnetwork'

0 comments on commit 20eada6

Please sign in to comment.