Fork me on GitHub
#clj-commons
<
2023-04-01
>
mynomoto19:04:50

Hello, I'm a new maintainer of a clojurescript library and would like to ask if someone has a pointer to a nice setup to run tests/publish versions automatically.

borkdude19:04:46

In my experience https://github.com/Olical/cljs-test-runner is the most straightforward way of testing a library (and also supports advanced compilation)

borkdude19:04:10

which library is it?

mynomoto19:04:44

It's https://github.com/hoplon/hoplon I'm working on moving it from boot to deps.edn, and I'm already running tests using the cljs-test-runner.

borkdude19:04:05

Is this library moving to clj-commons?

mynomoto19:04:27

But I could only setup it to run using chrome-headless on my machine and I'm wondering how to setup it on a ci.

borkdude19:04:59

I'm a bit busy but @UE21H2HHD might have some ideas (since #C7KDM0EKW also runs those)

mynomoto19:04:06

It is not, at least not a this time. But since you all maintain several libraries I wanted to borrow from your experience 😉

👍 2
borkdude19:04:27

you might just check out etaoin's github setup for ideas

mynomoto19:04:38

Ok, thank you!

seancorfield19:04:03

@U05094X3J have a look at HoneySQL as well - it's cljc and has simple packaging for Clojars with tools.build and GitHub actions to auto deploy

mynomoto19:04:46

I will, thank you!

mynomoto21:04:00

@U04V15CAJ I may be missing something but I could find no cljs tests on etaoin :thinking_face:

borkdude21:04:28

@U05094X3J no, but it does run chrome headless :)

mynomoto21:04:01

Oh, I see what you mean now 😅

borkdude21:04:08

I'm also running some etaoin + chrome headless tests in this project: https://github.com/borkdude/re-find.web

mynomoto21:04:54

Ok, I will check it out, thanks.

lread03:04:11

hey ho @U05094X3J, feel free to ping me here or over at #C7KDM0EKW if you have more questions

mynomoto11:04:28

Thank you all for helping, I got the tests running on chrome using github actions. 🙌

🎉 4