Skip to content

Commit

Permalink
Fix(Build): bump github action
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Aug 29, 2024
1 parent 439aff3 commit 121274a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand Down Expand Up @@ -43,13 +43,13 @@ jobs:
# Login to Google using Firebase Admin SDK Service Agent Key
- id: 'auth'
name: Login to Google Cloud
uses: 'google-github-actions/auth@v1'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}

# Set up Cloud SDK
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
uses: 'google-github-actions/setup-gcloud@v2'

# Set Firebase Project ID
- name: Set current project
Expand All @@ -65,7 +65,7 @@ jobs:
##########################################
# Upload APK for Java version
- name: Upload APK Debug for Java
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Java-Debug-APK
path: ${{ env.module_app }}/build/outputs/apk/debug/${{ env.module_app }}-debug.apk
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/deploy-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

################################
# Update Version Code #
Expand Down Expand Up @@ -71,6 +71,13 @@ jobs:
- name: Build with Gradle
run: ./gradlew assemble

- name: Setup build tool version variable
shell: bash
run: |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Last build tool version is: $BUILD_TOOL_VERSION
- name: Sign app APK
uses: r0adkll/sign-android-release@v1
# ID used to access action output
Expand All @@ -83,7 +90,7 @@ jobs:
keyPassword: ${{ secrets.SIGN_APP_KEYPASS }}
env:
# override default build-tools version (29.0.3) -- optional
BUILD_TOOLS_VERSION: "30.0.2"
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Push to google play
uses: r0adkll/upload-google-play@v1
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: develop
fetch-depth: 0 #To Fetch All Tags and Branches
Expand Down Expand Up @@ -114,6 +114,13 @@ jobs:
- name: Build with Gradle
run: ./gradlew build

- name: Setup build tool version variable
shell: bash
run: |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Last build tool version is: $BUILD_TOOL_VERSION
- name: Sign app APK
uses: r0adkll/sign-android-release@v1
# ID used to access action output
Expand All @@ -126,7 +133,7 @@ jobs:
keyPassword: ${{ secrets.SIGN_APP_KEYPASS }}
env:
# override default build-tools version (29.0.3) -- optional
BUILD_TOOLS_VERSION: "30.0.2"
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Push to google play
uses: r0adkll/upload-google-play@v1
Expand Down
4 changes: 1 addition & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ dependencies {
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.androidx', module: 'support-annotations'
})
androidTestImplementation('tools.fastlane:screengrab:1.1.0', {
exclude group: 'com.androidx', module: 'support-annotations'
})
androidTestImplementation 'tools.fastlane:screengrab:2.1.1'

testImplementation 'org.mockito:mockito-core:2.18.3'
androidTestImplementation 'org.mockito:mockito-android:2.18.3'
Expand Down

0 comments on commit 121274a

Please sign in to comment.