Skip to content

Commit e37cc7e

Browse files
committed
Add test scripts
1 parent 4097e42 commit e37cc7e

8 files changed

+22
-23
lines changed

.github/workflows/tests_browser.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
- name: Install Shadow
2626
run: npm install --also dev
2727

28-
- name: Compile Tests
29-
run: ./node_modules/.bin/shadow-cljs -A:cljs:test compile :browser-test
30-
3128
- name: Run Tests
32-
run: ./node_modules/.bin/karma start --single-run
29+
run: ./ci/run_tests_browser.sh
3330

.github/workflows/tests_clj.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
cli: 1.10.1.727
1919

2020
- name: Run tests
21-
run: clojure -X:test :dirs "[\"test\" \"example\"]" :patterns "[\"example.*\" \"hyperfiddle.rcf.*-test\"]"
21+
run: ./ci/run_tests_jvm.sh
2222

.github/workflows/tests_node.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
- name: Install Shadow
2626
run: npm install shadow-cljs
2727

28-
- name: Compile Tests
29-
run: ./node_modules/.bin/shadow-cljs -A:cljs:test compile :test
30-
3128
- name: Run Tests
32-
run: node out/node-tests.js
29+
run: ./ci/run_tests_node.sh
3330

ci/run_tests_all.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
./run_tests_jvm.sh
4+
./run_tests_node.sh
5+
./run_tests_browser.sh

ci/run_tests_browser.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
echo "Running Browser tests"
4+
./node_modules/.bin/shadow-cljs -A:cljs:test release :browser-test
5+
./node_modules/.bin/karma start --single-run

ci/run_tests_jvm.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
echo "Running JVM tests"
4+
clojure -X:test :dirs "[\"test\" \"example\"]" :patterns "[\"example.*\" \"hyperfiddle.rcf.*-test\"]"

ci/run_tests_node.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
echo "Running NodeJS tests"
4+
./node_modules/.bin/shadow-cljs -A:cljs:test release :test
5+
node out/node-tests.js

run_tests.sh

-14
This file was deleted.

0 commit comments

Comments
 (0)