Skip to content

Commit

Permalink
Add github test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cofinley committed Sep 13, 2023
1 parent 8ecf27d commit e949dd5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion test/why_does_that_sound_good/algo/chord_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
7 changes: 0 additions & 7 deletions test/why_does_that_sound_good/core_test.cljs

This file was deleted.

0 comments on commit e949dd5

Please sign in to comment.