Fork me on GitHub
#circleci
<
2020-05-29
>
seancorfield20:05:02

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?

seancorfield20:05:57

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?).

borkdude20:05:19

@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

seancorfield20:05:40

Oh, interesting... using separate jobs / separate images.

seancorfield20:05:55

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.

borkdude20:05:06

I prefer to use separate jobs so I can more easily see which part failed and they can run in parallel

4