use more flexible cache
This commit is contained in:
parent
36e0ede47e
commit
dce2269be7
2 changed files with 27 additions and 3 deletions
20
.github/workflows/test-and-snapshot.yml
vendored
20
.github/workflows/test-and-snapshot.yml
vendored
|
|
@ -11,11 +11,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
cache: 'maven'
|
|
||||||
- name: Setup Clojure
|
- name: Setup Clojure
|
||||||
uses: DeLaGuardo/setup-clojure@master
|
uses: DeLaGuardo/setup-clojure@master
|
||||||
with:
|
with:
|
||||||
tools-deps: '1.10.3.986'
|
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
|
- name: Run Tests
|
||||||
run: clojure -T:build ci :snapshot true
|
run: clojure -T:build ci :snapshot true
|
||||||
- name: Deploy Snapshot
|
- name: Deploy Snapshot
|
||||||
|
|
@ -35,11 +43,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
cache: 'maven'
|
|
||||||
- name: Clojure CLI
|
- name: Clojure CLI
|
||||||
uses: DeLaGuardo/setup-clojure@master
|
uses: DeLaGuardo/setup-clojure@master
|
||||||
with:
|
with:
|
||||||
tools-deps: '1.10.3.986'
|
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
|
- name: Run Tests
|
||||||
run: clojure -T:build ci
|
run: clojure -T:build ci
|
||||||
- name: Check cljdoc.edn
|
- name: Check cljdoc.edn
|
||||||
|
|
|
||||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
|
@ -14,11 +14,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
cache: 'maven'
|
|
||||||
- name: Clojure CLI
|
- name: Clojure CLI
|
||||||
uses: DeLaGuardo/setup-clojure@master
|
uses: DeLaGuardo/setup-clojure@master
|
||||||
with:
|
with:
|
||||||
tools-deps: '1.10.3.986'
|
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
|
- name: Run Tests
|
||||||
run: clojure -T:build ci
|
run: clojure -T:build ci
|
||||||
- name: Check cljdoc.edn
|
- name: Check cljdoc.edn
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue