Skip to content

Commit

Permalink
Adopt dev-deps approach to development dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont committed Jul 13, 2023
1 parent 9430def commit 5bcd042
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ jobs:
steps:
- name: "Test project"
uses: pyrmont/action-janet-test@master
with:
cmd-deps: "jpm -l run dev-deps"
cmd-test: "jpm -l test"
18 changes: 17 additions & 1 deletion project.janet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
:license "MIT"
:url "https://github.com/pyrmont/markable"
:repo "git+https://github.com/pyrmont/markable"
:dependencies ["https://github.com/pyrmont/testament"])
:dependencies []
:dev-dependencies ["https://github.com/pyrmont/testament"])


(def is-win (= :windows (os/which)))
Expand Down Expand Up @@ -66,3 +67,18 @@
# Janet wrapper
"src/markable/converter.c"
"src/markable.c"])


(task "dev-deps" []
(if-let [deps ((dyn :project) :dependencies)]
(each dep deps
(bundle-install dep))
(do
(print "no dependencies found")
(flush)))
(if-let [deps ((dyn :project) :dev-dependencies)]
(each dep deps
(bundle-install dep))
(do
(print "no dev-dependencies found")
(flush))))

0 comments on commit 5bcd042

Please sign in to comment.