Skip to content

Commit

Permalink
Provide lein (#188)
Browse files Browse the repository at this point in the history
As github actions complains wth "lein: command not found".

Following https://hackeryarn.com/post/clojure-actions/.
  • Loading branch information
dr0i committed Jan 9, 2025
1 parent 0f3cc19 commit 092bac0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
- uses: actions/checkout@v2
# Setup Leiningen. Also supports setting up other commonly used tools.
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with: lein: 2.9.1
# Enable cache so our actions run faster.
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
key: cljdeps-${{ hashFiles('project.clj') }}
restore-keys: cljdeps-
- name: Install dependencies
run: lein deps
- name: Build cljs
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ jobs:
npm install -g karma-cli
export CHROME_BIN='/usr/bin/chromium-browser'
- uses: actions/checkout@v2
# Setup Leiningen. Also supports setting up other commonly used tools.
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with: lein: 2.9.1
# Enable cache so our actions run faster.
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
key: cljdeps-${{ hashFiles('project.clj') }}
restore-keys: cljdeps-

- name: Install dependencies
run: lein deps

Expand Down

0 comments on commit 092bac0

Please sign in to comment.