summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy_snapshot.yml5
-rw-r--r--.github/workflows/pull_request.yml8
2 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/deploy_snapshot.yml b/.github/workflows/deploy_snapshot.yml
index 110546b1..4c5bda07 100644
--- a/.github/workflows/deploy_snapshot.yml
+++ b/.github/workflows/deploy_snapshot.yml
@@ -17,6 +17,11 @@ jobs:
env:
ENCRYPT_KEY: ${{ secrets.ENCRYPT_KEY }}
+ - uses: actions/cache@v1
+ with:
+ path: ~/.gradle/caches
+ key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/dependencies.gradle') }}
+
- name: Download gradle dependencies
run: ./gradlew dependencies
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index e158846c..283699b9 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -5,8 +5,16 @@ jobs:
test-pr:
runs-on: ubuntu-latest
steps:
+
- uses: actions/checkout@master
+
+ - uses: actions/cache@v1
+ with:
+ path: ~/.gradle/caches
+ key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/dependencies.gradle') }}
+
- run: ./gradlew spotlessCheck build test lintDebug -Dpre-dex=false
+
- uses: actions/upload-artifact@master
with:
name: Debug APK