niko
2021-8-21 09:01:57

I am not able to use raco test in github actions because it keeps trying to connect to an X server (https://github.com/dada-lang/dada-model/runs/3388502704?check_suite_focus=true\|logshttps://github.com/dada-lang/dada-model/runs/3388502704?check_suite_focus=true))\|). I can find some discussion of this online, mostly in connection with the racket language server, but not much. Any advice?


alexharsanyi
2021-8-21 09:16:47

You need to start the X virtual frame buffer, ‘xvfb” in the action. The plot package has an example, other packages might have examples too.


niko
2021-8-21 12:58:53

where can I find the plot package?


niko
2021-8-21 12:59:08

this <https://defn.io/2020/05/05/github-actions-for-racket-revised/|blog post> was about the only one I found and it doesn’t say anything about that


niko
2021-8-21 12:59:44

I guess there is <https://github.com/marketplace/actions/gabrielbb-xvfb-action|this github action>, sounds like maybe what I want?


niko
2021-8-21 13:03:55

<https://github.com/dada-lang/dada-model/commit/c1a150437bd4199710e45a8575f3456031653070|it works!> — thanks!


samth
2021-8-21 13:18:52

Also if you switch to (require redex/reduction-semantics) it doesn’t need the gui anymore


madeinquant
2021-8-21 14:41:24

@madeinquant has joined the channel