act/pkg/runner
Ryan adabf2a202
fix: rework setupShellCommand (#930)
* fix: rework `setupShellCommand`

* move all logic to separate function so we can test that later
* split `step.Shell` and `step.WorkingDirectory` setup into own funcs
* general cleanup of function
* use `ActPath` to not collide with checked out repository
* use `shellquote.Split()` instead of `strings.Fields()` for better command split
* replace single string concat with `fmt`

Signed-off-by: hackercat <me@hackerc.at>

* lint(editorconfig): ignore *_test.go due to mixed style

Signed-off-by: hackercat <me@hackerc.at>
2021-12-22 06:37:16 +00:00
..
res Add super-linter + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
testdata fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00
command.go fix: ::stop-commands:: should continue to print the lines (#920) 2021-12-09 15:10:56 +00:00
command_test.go fix: ::stop-commands:: should continue to print the lines (#920) 2021-12-09 15:10:56 +00:00
expression.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
expression_test.go Add more steps context support (#887) 2021-11-27 17:55:26 +00:00
logger.go feat: allow existing logger from context (#898) 2021-11-27 17:45:56 +00:00
run_context.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
run_context_test.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
runner.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
runner_test.go fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00
step_context.go fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00
step_context_test.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00