From 542c7730533711ab19ff5aa8304e003d6596cf52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santiago?= Date: Sun, 23 Jan 2022 07:54:42 +0100 Subject: [PATCH 1/8] Create run-tests.yaml --- .github/workflows/run-tests.yaml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/run-tests.yaml diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..d4d2c8d --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -0,0 +1,38 @@ +name: Run tests + +on: [push] + +jobs: + + clojure: + + strategy: + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Prepare java + uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '8' + + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@3.7 + with: + cli: 1.10.1.693 + + - name: Execute clojure code on Linux and MacOS + if: ${{ matrix.os != 'windows-latest' }} + run: clojure -X:test + shell: bash + + - name: Execute clojure code on Windows + if: ${{ matrix.os == 'windows-latest' }} + run: clojure -X:test + shell: powershell From 3a77c663c176b76e5a5108db25fc2e810d458139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santiago?= Date: Sun, 23 Jan 2022 08:00:31 +0100 Subject: [PATCH 2/8] use at least java 11 --- .github/workflows/run-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index d4d2c8d..5fcd3e2 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-java@v2 with: distribution: 'zulu' - java-version: '8' + java-version: '11' - name: Install clojure tools uses: DeLaGuardo/setup-clojure@3.7 From f571727cb46063c7567ed56114b58ba14e0fdcd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santiago?= Date: Sun, 23 Jan 2022 08:02:17 +0100 Subject: [PATCH 3/8] ad badge to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index da26e28..df339e2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Run tests](https://github.com/jcpsantiago/bulgogi/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/jcpsantiago/bulgogi/actions/workflows/run-tests.yaml) + # bulgogi Helper for ML feature preprocessing. Very tasty. From 80e40a518bcdabdccaaa2e05b818a3e02786f9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santiago?= Date: Sun, 23 Jan 2022 08:53:17 +0100 Subject: [PATCH 4/8] remove git/ from keys --- deps.edn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps.edn b/deps.edn index 5c04c58..551c8ec 100644 --- a/deps.edn +++ b/deps.edn @@ -3,7 +3,7 @@ :aliases {:test {:extra-paths ["test"] :extra-deps {io.github.cognitect-labs/test-runner - {:git/tag "v0.5.0" :git/sha "b3fd0d2"}} + {:tag "v0.5.0" :sha "b3fd0d2"}} :main-opts ["-m" "cognitect.test-runner"] :exec-fn cognitect.test-runner.api/test} :jar {:extra-deps {seancorfield/depstar {:mvn/version "1.1.128"}} From 5f3d8742b157bf21f121743babbe24b2fa3a548c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santiago?= Date: Sun, 23 Jan 2022 08:56:09 +0100 Subject: [PATCH 5/8] add git url --- deps.edn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps.edn b/deps.edn index 551c8ec..1b1d353 100644 --- a/deps.edn +++ b/deps.edn @@ -3,7 +3,8 @@ :aliases {:test {:extra-paths ["test"] :extra-deps {io.github.cognitect-labs/test-runner - {:tag "v0.5.0" :sha "b3fd0d2"}} + {:git/url "https://github.com/cognitect-labs/test-runner.git" + :git/tag "v0.5.0" :sha "b3fd0d2"}} :main-opts ["-m" "cognitect.test-runner"] :exec-fn cognitect.test-runner.api/test} :jar {:extra-deps {seancorfield/depstar {:mvn/version "1.1.128"}} From 9379b9c9d762e6948309b1269248f4f891091f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santiago?= Date: Sun, 23 Jan 2022 08:57:34 +0100 Subject: [PATCH 6/8] use full sha --- deps.edn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps.edn b/deps.edn index 1b1d353..28a6b13 100644 --- a/deps.edn +++ b/deps.edn @@ -4,7 +4,7 @@ {:test {:extra-paths ["test"] :extra-deps {io.github.cognitect-labs/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git" - :git/tag "v0.5.0" :sha "b3fd0d2"}} + :git/tag "v0.5.0" :sha "48c3c67f98362ba1e20526db4eeb6996209c050a"}} :main-opts ["-m" "cognitect.test-runner"] :exec-fn cognitect.test-runner.api/test} :jar {:extra-deps {seancorfield/depstar {:mvn/version "1.1.128"}} From 33bd6f2c503daf33db220bfb47bc20e63fcef257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santiago?= Date: Sun, 23 Jan 2022 08:59:03 +0100 Subject: [PATCH 7/8] make tests pass to test CI --- test/jcpsantiago/bulgogi_test.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/jcpsantiago/bulgogi_test.clj b/test/jcpsantiago/bulgogi_test.clj index 17ac874..766a72c 100644 --- a/test/jcpsantiago/bulgogi_test.clj +++ b/test/jcpsantiago/bulgogi_test.clj @@ -5,5 +5,5 @@ (deftest a-test - (testing "FIXME, I fail." - (is (= 0 1)))) + (testing "will be gone soon :D" + (is (= 1 1)))) From dfb97643bf5504642eb32b8692ee3e6d24de1c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santiago?= Date: Sun, 23 Jan 2022 09:01:18 +0100 Subject: [PATCH 8/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index df339e2..4767b31 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Run tests](https://github.com/jcpsantiago/bulgogi/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/jcpsantiago/bulgogi/actions/workflows/run-tests.yaml) +[![CI](https://github.com/jcpsantiago/bulgogi/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/jcpsantiago/bulgogi/actions/workflows/run-tests.yaml) # bulgogi Helper for ML feature preprocessing. Very tasty.