Skip to content

Commit 4313473

Browse files
committed
Improved cache keys
1 parent 4e4e8bc commit 4313473

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
~/.m2/repository
3030
~/.gitlibs
3131
~/.deps.clj
32-
key: v1-deploy-${{ hashFiles('./deps.edn') }}
32+
key: v1-${{ hashFiles('./deps.edn') }}-deploy
3333
restore-keys: |
34-
v1-deploy-
34+
v1-${{ hashFiles('./deps.edn') }}-
3535
v1-
3636
- name: Build Toucan 2
3737
run: clojure -T:build build

.github/workflows/tests.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ jobs:
4747
~/.m2/repository
4848
~/.gitlibs
4949
~/.deps.clj
50-
key: v1-tests-postgres-${{ hashFiles('./deps.edn') }}
50+
key: v1-${{ hashFiles('./deps.edn') }}-postgres
5151
restore-keys: |
52-
v1-tests-postgres-
53-
v1-tests-
52+
v1-${{ hashFiles('./deps.edn') }}-
5453
v1-
5554
- run: clojure -X:dev:test:test-postgres
5655
name: Run tests
@@ -78,10 +77,9 @@ jobs:
7877
~/.m2/repository
7978
~/.gitlibs
8079
~/.deps.clj
81-
key: v1-tests-h2-${{ hashFiles('./deps.edn') }}
80+
key: v1-${{ hashFiles('./deps.edn') }}-h2
8281
restore-keys: |
83-
v1-tests-h2-
84-
v1-tests-
82+
v1-${{ hashFiles('./deps.edn') }}-
8583
v1-
8684
- run: clojure -X:dev:test:test-h2
8785
name: Run tests
@@ -108,10 +106,9 @@ jobs:
108106
~/.m2/repository
109107
~/.gitlibs
110108
~/.deps.clj
111-
key: v1-tests-whitespace-linter-${{ hashFiles('./deps.edn') }}
109+
key: v1-${{ hashFiles('./deps.edn') }}-whitespace-linter
112110
restore-keys: |
113-
v1-tests-whitespace-linter-
114-
v1-tests-
111+
v1-${{ hashFiles('./deps.edn') }}-
115112
v1-
116113
- run: clojure -T:whitespace-linter
117114
name: Run whitespace linter
@@ -136,10 +133,9 @@ jobs:
136133
~/.m2/repository
137134
~/.gitlibs
138135
~/.deps.clj
139-
key: v1-tests-check-${{ hashFiles('./deps.edn') }}
136+
key: v1-${{ hashFiles('./deps.edn') }}-check
140137
restore-keys: |
141-
v1-tests-check-
142-
v1-tests-
138+
v1-${{ hashFiles('./deps.edn') }}-
143139
v1-
144140
- run: clojure -M:check
145141
name: Check Toucan 2 core namespaces
@@ -167,10 +163,9 @@ jobs:
167163
~/.m2/repository
168164
~/.gitlibs
169165
~/.deps.clj
170-
key: v1-tests-codecov-${{ hashFiles('./deps.edn') }}
166+
key: v1-${{ hashFiles('./deps.edn') }}-codecov
171167
restore-keys: |
172-
v1-tests-codecov-
173-
v1-tests-
168+
v1-${{ hashFiles('./deps.edn') }}-
174169
v1-
175170
- run: clojure -X:dev:test-h2:cloverage
176171
name: Run tests with Cloverage

toucan1/build.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
(ns build
2-
(:require [clojure.string :as str]
2+
(:require [clojure.java.shell :as sh]
3+
[clojure.string :as str]
34
[org.corfield.build :as bb]))
45

56
(def lib 'io.github.camsaul/toucan2-toucan1)

0 commit comments

Comments
 (0)