Update possible github actions

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta 2023-08-03 01:09:16 +08:00
parent 6ca1f2792f
commit 63bfb6be55

View file

@ -7,29 +7,23 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - name: Checkout the code
uses: actions/checkout@v3
- name: Gradle dependency cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Android build cache - name: Android build cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
~/.android/build-cache ~/.android/build-cache
key: ${{ runner.os }}-android key: ${{ runner.os }}-android
restore-keys: ${{ runner.os }}-android restore-keys: ${{ runner.os }}-android
- name: Set up JDK 11 - name: Set up JDK 17
uses: actions/setup-java@v1 uses: actions/setup-java@v3
with: with:
distribution: 'corretto'
java-version: 17 java-version: 17
cache: 'gradle'
- name: Build - name: Build
run: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck run: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck