How to properly invoke just commands in github actions with powershell? #1852
Unanswered
AlessandroMiola
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! First off, thank you for this amazing tool!
I'm trying to adopt
just
and I fell into some issues while setting up a CI pipeline with Github Actions (tbh I'm pretty new to this, too, so I might be overlooking something); I'd like to reference some commands from myjustfile
in the Github Actions workflow, but I haven't found a way through yet. For personal preference, I'd like everything to work onpowershell
.My
justfile
is as follows (should run on a Windows machine):and here is part of my
.yaml
file triggering the actions:All these set, I get the following error message:
In the idea of ensuring compatibility between
set shell := ["powershell.exe", "-c"]
injustfile
and the setup of the default shell inactions.yaml
(namely, trying to ensure alignment between the local execution environment and the Linux environment the Github Actions workflow runs on), I've tried to play around with these two with no luck. Neither settingpwsh
norpowershell
as default shell seems to work; specifying the shell at the level of single steps (withshell:
option) doesn't work as well.Can anyone help? Perhaps it should be better asked in https://github.com/taiki-e/install-action, but this repo is missing the Discussions tab.
Thank you in advance!
Update
I could get a working configuration while setting up everything to run on
bash
, but I'm yet to find a way to make it work onpowershell
. Plus, I noticed that - no matter what the default shell configuration inactions.yaml
-taiki-e/install-action@just
seems to always run onbash
(and nowith: shell:
option to force a different behaviour is provided).Beta Was this translation helpful? Give feedback.
All reactions