mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-24 15:55:03 +01:00
feat: log parsed command data in json logger (#103)
* feat: log parsed command data in json logger * add logging info to other commands as well
This commit is contained in:
@@ -191,6 +191,7 @@ func TestStepActionRemote(t *testing.T) {
|
||||
return nil
|
||||
})
|
||||
|
||||
cm.On("GetContainerArchive", ctx, "/var/run/act/workflow/SUMMARY.md").Return(io.NopCloser(&bytes.Buffer{}), nil)
|
||||
cm.On("GetContainerArchive", ctx, "/var/run/act/workflow/pathcmd.txt").Return(io.NopCloser(&bytes.Buffer{}), nil)
|
||||
}
|
||||
|
||||
@@ -199,8 +200,8 @@ func TestStepActionRemote(t *testing.T) {
|
||||
err = sar.main()(ctx)
|
||||
}
|
||||
|
||||
assert.Equal(t, tt.runError, err)
|
||||
assert.Equal(t, tt.result, sar.RunContext.StepResults["step"])
|
||||
assert.ErrorIs(t, err, tt.runError)
|
||||
assert.Equal(t, sar.RunContext.StepResults["step"], tt.result)
|
||||
|
||||
sarm.AssertExpectations(t)
|
||||
cm.AssertExpectations(t)
|
||||
@@ -554,6 +555,7 @@ func TestStepActionRemotePost(t *testing.T) {
|
||||
return nil
|
||||
})
|
||||
|
||||
cm.On("GetContainerArchive", ctx, "/var/run/act/workflow/SUMMARY.md").Return(io.NopCloser(&bytes.Buffer{}), nil)
|
||||
cm.On("GetContainerArchive", ctx, "/var/run/act/workflow/pathcmd.txt").Return(io.NopCloser(&bytes.Buffer{}), nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user