I'm trying to set up a job that runs both Clojure tests and ClojureScript tests. I figured an image based on openjdk and tools-deps would be a good basis but I can't find how to install node in a way that makes the node
command available for cljs-test-runner
to actually find. Can someone point me at an existing project that does this?
I thought maybe this would work https://github.com/seancorfield/honeysql/blob/master/.circleci/config.yml#L17-L19 but it doesn't seem to make a node
command available (I guess it makes a js
command available instead?).
@seancorfield I've got a CircleCI config here which runs .cljc lib tests on the JVM and Node: https://github.com/borkdude/edamame/blob/master/.circleci/config.yml
Oh, interesting... using separate jobs / separate images.
I got it working by adding a step to add a symlink from /usr/bin/js
to /usr/bin/node
so I can do it all in one job for now... It all "Just. Worked." using GitHub Actions.
I prefer to use separate jobs so I can more easily see which part failed and they can run in parallel