Hey team,
I have this function in Dagger:
func (f *FrCliDagger) Test(
ctx context.Context,
source *dagger.Directory,
) (string, error) {
return dag.Container().
From(fmt.Sprintf("golang:%s", goVersion)).
WithDirectory(".", source).
WithWorkdir(".").
WithExec([]string{"go", "test", "./..."}).
Stdout(ctx)
}
When I run it in the command like like this it completes successfully:
dagger call test --source .
When it gets executed via Github actions with the following config:
- name: "Test"
uses: dagger/dagger-for-github@v6
with:
verb: call
args: test --source .
cloud-token: ${{ secrets.************* }}
It fails with this error:
[...]
FrCliDagger.test DONE [32.6s]
? fr-cli [no test files]
? fr-cli/commands [no test files]
ok fr-cli/tmutilreport 0.003s
A new release of dagger is available: v0.13.7 β v0.14.0
To upgrade, see https://docs.dagger.io/install
https://github.com/dagger/dagger/releases/tag/v0.14.0
Error: Unable to process file command 'output' successfully.
Error: Invalid format '? fr-cli/commands [no test files]'
I've tried with dagger/dagger-for-github@v7 (and Dagger v0.14.0) and the same happens.
Any idea on what's wrong? The tests do complete and pass in Github actions, but seems like some of the output is being parsed/executed and it fails.
I've noticed some recent changes in the Dagger Github action code, but I'm not sure if its related. Here: https://github.com/dagger/dagger-for-github/compare/v6.14.0...v7.0.0#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6
Thanks
I'll look into it asap when I'm back in front of a keyboard π