-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As github actions complains wth "lein: command not found". Following https://hackeryarn.com/post/clojure-actions/.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|