Skip to content

Commit

Permalink
Improved cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
camsaul committed Jan 13, 2023
1 parent 4e4e8bc commit 4313473
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: v1-deploy-${{ hashFiles('./deps.edn') }}
key: v1-${{ hashFiles('./deps.edn') }}-deploy
restore-keys: |
v1-deploy-
v1-${{ hashFiles('./deps.edn') }}-
v1-
- name: Build Toucan 2
run: clojure -T:build build
Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ jobs:
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: v1-tests-postgres-${{ hashFiles('./deps.edn') }}
key: v1-${{ hashFiles('./deps.edn') }}-postgres
restore-keys: |
v1-tests-postgres-
v1-tests-
v1-${{ hashFiles('./deps.edn') }}-
v1-
- run: clojure -X:dev:test:test-postgres
name: Run tests
Expand Down Expand Up @@ -78,10 +77,9 @@ jobs:
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: v1-tests-h2-${{ hashFiles('./deps.edn') }}
key: v1-${{ hashFiles('./deps.edn') }}-h2
restore-keys: |
v1-tests-h2-
v1-tests-
v1-${{ hashFiles('./deps.edn') }}-
v1-
- run: clojure -X:dev:test:test-h2
name: Run tests
Expand All @@ -108,10 +106,9 @@ jobs:
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: v1-tests-whitespace-linter-${{ hashFiles('./deps.edn') }}
key: v1-${{ hashFiles('./deps.edn') }}-whitespace-linter
restore-keys: |
v1-tests-whitespace-linter-
v1-tests-
v1-${{ hashFiles('./deps.edn') }}-
v1-
- run: clojure -T:whitespace-linter
name: Run whitespace linter
Expand All @@ -136,10 +133,9 @@ jobs:
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: v1-tests-check-${{ hashFiles('./deps.edn') }}
key: v1-${{ hashFiles('./deps.edn') }}-check
restore-keys: |
v1-tests-check-
v1-tests-
v1-${{ hashFiles('./deps.edn') }}-
v1-
- run: clojure -M:check
name: Check Toucan 2 core namespaces
Expand Down Expand Up @@ -167,10 +163,9 @@ jobs:
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: v1-tests-codecov-${{ hashFiles('./deps.edn') }}
key: v1-${{ hashFiles('./deps.edn') }}-codecov
restore-keys: |
v1-tests-codecov-
v1-tests-
v1-${{ hashFiles('./deps.edn') }}-
v1-
- run: clojure -X:dev:test-h2:cloverage
name: Run tests with Cloverage
Expand Down
3 changes: 2 additions & 1 deletion toucan1/build.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns build
(:require [clojure.string :as str]
(:require [clojure.java.shell :as sh]
[clojure.string :as str]
[org.corfield.build :as bb]))

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

0 comments on commit 4313473

Please sign in to comment.