diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b6894a1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Run tests + +on: [push, pull_request] + +jobs: + test: + name: Tests + runs-on: ubuntu-20.04 + container: + image: ghcr.io/day8/chrome-latest:2 + steps: + - uses: actions/checkout@v2 + - name: npm install + run: 'npm install' + - name: run tests + run: | + nohup npm run watch & + sleep 180 + karma start --single-run \ No newline at end of file diff --git a/test/why_does_that_sound_good/algo/chord_test.cljc b/test/why_does_that_sound_good/algo/chord_test.cljc index c9a563d..afdf138 100644 --- a/test/why_does_that_sound_good/algo/chord_test.cljc +++ b/test/why_does_that_sound_good/algo/chord_test.cljc @@ -4,7 +4,7 @@ (deftest find-closest-octave-test (is (= 4 (chord/find-closest-octave :C 60))) - (is (= 4 (chord/find-closest-octave :B 60)))) + (is (= 3 (chord/find-closest-octave :B 60)))) (deftest get-relative-chord-notes-test (are [expected-notes original-notes chord-pitches] (= expected-notes (chord/get-relative-chord-notes original-notes chord-pitches)) diff --git a/test/why_does_that_sound_good/core_test.cljs b/test/why_does_that_sound_good/core_test.cljs deleted file mode 100644 index b69f5f6..0000000 --- a/test/why_does_that_sound_good/core_test.cljs +++ /dev/null @@ -1,7 +0,0 @@ -(ns why-does-that-sound-good.core-test - (:require [cljs.test :refer-macros [deftest testing is]] - [why-does-that-sound-good.core :as core])) - -(deftest fake-test - (testing "fake description" - (is (= 1 2))))