circleci

rm -rf /home/circleci/.gitconfig
seancorfield 2020-05-29T20:30:02.003200Z

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?

seancorfield 2020-05-29T20:30:57.004Z

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

borkdude 2020-05-29T20:35:19.004600Z

@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

seancorfield 2020-05-29T20:36:40.005300Z

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

seancorfield 2020-05-29T20:37:55.006500Z

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.

borkdude 2020-05-29T20:40:06.006900Z

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

1