-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump
io.github.rads/deps-info
to v0.0.10
New features: - Support inference for private Git repos (resolves #48) - Support all possible "lib to url" cases (resolves #3)
- Loading branch information
Showing
5 changed files
with
32 additions
and
34 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 |
---|---|---|
|
@@ -6,6 +6,9 @@ jobs: | |
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- name: Install clojure tools | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
|
@@ -16,6 +19,9 @@ jobs: | |
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- name: Install clojure tools | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
|
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
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
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
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 |
---|---|---|
|
@@ -12,7 +12,13 @@ | |
|
||
(def bbin-test-lib | ||
'{:lib io.github.rads/bbin-test-lib, | ||
:coords {:git/url "https://github.com/rads/bbin-test-lib", | ||
:coords {:git/url "https://github.com/rads/bbin-test-lib.git", | ||
:git/tag "v0.0.1", | ||
:git/sha "9140acfc12d8e1567fc6164a50d486de09433919"}}) | ||
|
||
(def bbin-test-lib-private | ||
'{:lib io.github.rads/bbin-test-lib-private, | ||
:coords {:git/url "[email protected]:rads/bbin-test-lib-private.git", | ||
:git/tag "v0.0.1", | ||
:git/sha "9140acfc12d8e1567fc6164a50d486de09433919"}}) | ||
|
||
|
@@ -25,18 +31,7 @@ | |
(util/ensure-bbin-dirs cli-opts) | ||
(is (= {} (scripts/load-scripts cli-opts))) | ||
(spit (fs/file (util/bin-dir cli-opts) "test-script") test-script) | ||
(is (= '{test-script | ||
{:lib io.github.rads/bbin-test-lib, | ||
:coords {:git/url "https://github.com/rads/bbin-test-lib", | ||
:git/tag "v0.0.1", | ||
:git/sha "9140acfc12d8e1567fc6164a50d486de09433919"}}} | ||
(scripts/load-scripts cli-opts))))) | ||
|
||
(def test-lib | ||
{:lib 'io.github.rads/bbin-test-lib | ||
:coords {:git/url "https://github.com/rads/bbin-test-lib" | ||
:git/tag "v0.0.1" | ||
:git/sha "9140acfc12d8e1567fc6164a50d486de09433919"}}) | ||
(is (= {'test-script bbin-test-lib} (scripts/load-scripts cli-opts))))) | ||
|
||
(def portal-script-url | ||
(str "https://gist.githubusercontent.com" | ||
|
@@ -56,14 +51,25 @@ | |
{:keys [out]} (sh args {:err :inherit})] | ||
(str/trim out))) | ||
|
||
(deftest install-from-qualified-lib-name-test | ||
(testing "install */*" | ||
(deftest install-from-qualified-lib-name-public-test | ||
(testing "install */* (public Git repo)" | ||
(reset-test-dir) | ||
(util/ensure-bbin-dirs {}) | ||
(let [cli-opts {:script/lib "io.github.rads/bbin-test-lib"} | ||
out (run-install cli-opts) | ||
bin-file (fs/file bin-dir "hello")] | ||
(is (= test-lib out)) | ||
(is (= bbin-test-lib out)) | ||
(is (fs/exists? bin-file)) | ||
(is (= "Hello world!" (run-bin-script 'hello)))))) | ||
|
||
(deftest install-from-qualified-lib-name-private-test | ||
(testing "install */* (private Git repo)" | ||
(reset-test-dir) | ||
(util/ensure-bbin-dirs {}) | ||
(let [cli-opts {:script/lib "io.github.rads/bbin-test-lib-private"} | ||
out (run-install cli-opts) | ||
bin-file (fs/file bin-dir "hello")] | ||
(is (= bbin-test-lib-private out)) | ||
(is (fs/exists? bin-file)) | ||
(is (= "Hello world!" (run-bin-script 'hello)))))) | ||
|
||
|