Open gzoller opened 4 years ago
Additional data: I got this to work in one way by down-grading my sbt to an older version (was 1.3.4, now 1.2.7). That stopped the above error, but now I'm having trouble getting sbt to run multiple commands. I've tried:
commands: 'clean coverage test coverageAggregate'
and
commands: 'clean' 'coverage' 'test' 'coverageAggregate'
For now I'm doing a separate github-action-sbt task for each one of these. It seems to work, but its pretty slow because the action needs to set up sbt for each invocation of the task.
In both cases sbt fails in the action saying it expects a whitespace between clean and coverage. Am I doing this right?
Interesting; I need to look at the setup-java actions, as I'm including java in my image - the java version mismatch could be causing the issue.
As for the quoting, there are interesting issues with passing quotes through bash shell. You might try "'clean' 'coverage' 'test' 'coverageAggregate'"
or other variations. I've also considered having the commands stuffed into an env var, then building the command line from that to avoid quoting issues.
I’m getting failures using sbt-coverage. It’s like the plugins didn’t import when sbt fired. It all works great locally but always fails as a github Action.
My action yml is this:
Here’s a clip of the error:
This import is in my build.sbt. My plugins.sbt file lives in my root project directory and specifies the sbt-coverage plugin.
Can the sby action detect and handle sbt plugins?