From 431b787e13901d4f5153234ca10dc3f185a3e842 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Mon, 1 Nov 2021 16:50:43 -0700 Subject: [PATCH] try out direct cache action --- .github/workflows/test-and-snapshot.yml | 38 +++++++++++++++++++++++-- .github/workflows/test.yml | 28 +++++++++++++++++- 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-and-snapshot.yml b/.github/workflows/test-and-snapshot.yml index c14c806..0e1baa7 100644 --- a/.github/workflows/test-and-snapshot.yml +++ b/.github/workflows/test-and-snapshot.yml @@ -11,11 +11,19 @@ jobs: with: distribution: 'adopt' java-version: '11' - cache: 'maven' - name: Setup Clojure uses: DeLaGuardo/setup-clojure@master with: tools-deps: '1.10.3.986' + - name: Cache All The Things + uses: actions/cache@v2 + with: + path: | + ~/.m2/repository + ~/.gitlibs + ~/.clojure + ~/.cpcache + key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} - name: Run Tests run: clojure -T:build ci :snapshot true - name: Deploy Snapshot @@ -35,11 +43,19 @@ jobs: with: distribution: 'adopt' java-version: ${{ matrix.java }} - cache: 'maven' - name: Setup Clojure uses: DeLaGuardo/setup-clojure@master with: tools-deps: '1.10.3.986' + - name: Cache All The Things + uses: actions/cache@v2 + with: + path: | + ~/.m2/repository + ~/.gitlibs + ~/.clojure + ~/.cpcache + key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} - name: Run Tests run: clojure -T:build test @@ -60,6 +76,15 @@ jobs: uses: DeLaGuardo/setup-clojure@master with: tools-deps: '1.10.3.986' + - name: Cache All The Things + uses: actions/cache@v2 + with: + path: | + ~/.m2/repository + ~/.gitlibs + ~/.clojure + ~/.cpcache + key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} - name: Run Tests run: clojure -T:build test @@ -80,5 +105,14 @@ jobs: uses: DeLaGuardo/setup-clojure@master with: tools-deps: '1.10.3.986' + - name: Cache All The Things + uses: actions/cache@v2 + with: + path: | + ~/.m2/repository + ~/.gitlibs + ~/.clojure + ~/.cpcache + key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} - name: Run Tests run: clojure -T:build test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f873489..f57eefe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,11 +14,19 @@ jobs: with: distribution: 'adopt' java-version: ${{ matrix.java }} - cache: 'maven' - name: Setup Clojure uses: DeLaGuardo/setup-clojure@master with: tools-deps: '1.10.3.986' + - name: Cache All The Things + uses: actions/cache@v2 + with: + path: | + ~/.m2/repository + ~/.gitlibs + ~/.clojure + ~/.cpcache + key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} - name: Run Tests run: clojure -T:build test @@ -39,6 +47,15 @@ jobs: uses: DeLaGuardo/setup-clojure@master with: tools-deps: '1.10.3.986' + - name: Cache All The Things + uses: actions/cache@v2 + with: + path: | + ~/.m2/repository + ~/.gitlibs + ~/.clojure + ~/.cpcache + key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} - name: Run Tests run: clojure -T:build test @@ -59,5 +76,14 @@ jobs: uses: DeLaGuardo/setup-clojure@master with: tools-deps: '1.10.3.986' + - name: Cache All The Things + uses: actions/cache@v2 + with: + path: | + ~/.m2/repository + ~/.gitlibs + ~/.clojure + ~/.cpcache + key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} - name: Run Tests run: clojure -T:build test