Skip to content

Commit

Permalink
Merge pull request #36 from circleci/remove-useless-caching
Browse files Browse the repository at this point in the history
Flatten CI workflow & remove unnecessary CI caching
  • Loading branch information
stig authored Mar 22, 2024
2 parents 448025f + a77cf21 commit 83e8feb
Showing 1 changed file with 5 additions and 36 deletions.
41 changes: 5 additions & 36 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,63 +13,32 @@ jobs:
- checkout
- run: clj-kondo --lint .

build:
check:
<<: *defaults
steps:
- checkout

- restore_cache:
keys:
- v1-m2-{{ .Branch }}-{{ checksum "project.clj" }}

- run: lein deps

- run: lein check

- save_cache:
key: v1-m2-{{ .Branch }}-{{ checksum "project.clj" }}
paths:
- "~/.m2"

docs:
<<: *defaults
steps:
- checkout

- restore_cache:
keys:
- v1-m2-{{ .Branch }}-{{ checksum "project.clj" }}

- run: lein deps
- run: lein codox

- save_cache:
key: v1-m2-{{ .Branch }}-{{ checksum "project.clj" }}
paths:
- "~/.m2"

test:
<<: *defaults
steps:
- checkout

- restore_cache:
keys:
- v1-m2-{{ .Branch }}-{{ checksum "project.clj" }}

- run: lein deps
- run: lein test

- save_cache:
key: v1-m2-{{ .Branch }}-{{ checksum "project.clj" }}
paths:
- "~/.m2"

workflows:
version: 2
build_and_test:
jobs:
- clj-kondo
- build
- check
- docs
- test:
requires:
- build
- test

0 comments on commit 83e8feb

Please sign in to comment.