Skip to content

Commit

Permalink
Merge pull request #835 from shivamarora1/clojure-lein-example
Browse files Browse the repository at this point in the history
feat: 🎸 add example for clojure lein project deps
  • Loading branch information
Sankalp Kotewar authored and GitHub committed Aug 1, 2022
2 parents 71e3ee5 + a0e530f commit 4387dbc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Every programming language and framework has its own way of caching.
See [Examples](examples.md) for a list of `actions/cache` implementations for use with:

- [C# - NuGet](./examples.md#c---nuget)
- [Clojure - Lein Deps](./examples.md#clojure---lein-deps)
- [D - DUB](./examples.md#d---dub)
- [Deno](./examples.md#deno)
- [Elixir - Mix](./examples.md#elixir---mix)
Expand Down
14 changes: 14 additions & 0 deletions examples.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Examples

- [C# - NuGet](#c---nuget)
- [Clojure - Lein Deps](#clojure---lein-deps)
- [D - DUB](#d---dub)
- [POSIX](#posix)
- [Windows](#windows)
Expand Down Expand Up @@ -80,6 +81,19 @@ steps:
${{ runner.os }}-nuget-
```

## Clojure - Lein Deps

```yaml
- name: Cache lein project dependencies
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-clojure-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-clojure
```


## D - DUB

### POSIX
Expand Down

0 comments on commit 4387dbc

Please sign in to comment.