Skip to content

Commit

Permalink
Upgrade GitHub workflow to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
atomgomba committed Nov 30, 2024
1 parent 364b4e4 commit 2a4b221
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,23 @@ jobs:

steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up caching
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/gradle/*.toml') }}
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: "zulu"
java-version: "17"
- name: Build the app
run: ./gradlew assembleRelease
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Unsigned release APK
path: app/build/outputs/apk/release/app-release-unsigned.apk
Expand All @@ -43,17 +44,18 @@ jobs:
needs: build
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up caching
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/gradle/*.toml') }}
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: "zulu"
java-version: "17"
- name: Run unit tests
run: ./gradlew testDebugUnitTest --stacktrace

0 comments on commit 2a4b221

Please sign in to comment.