diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..5fcd3e2 --- /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: '11' + + - 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 diff --git a/README.md b/README.md index da26e28..4767b31 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![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. diff --git a/deps.edn b/deps.edn index 5c04c58..28a6b13 100644 --- a/deps.edn +++ b/deps.edn @@ -3,7 +3,8 @@ :aliases {:test {:extra-paths ["test"] :extra-deps {io.github.cognitect-labs/test-runner - {:git/tag "v0.5.0" :git/sha "b3fd0d2"}} + {:git/url "https://github.com/cognitect-labs/test-runner.git" + :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"}} 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))))