1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-10-15 19:42:06 +00:00
forgejo-runner/act/model
Ryan 06ef9ae6fe 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
..
testdata Simplify Matrix decode, add defaults for fail-fast and max-parallel, add test (#763) 2021-08-09 15:35:05 +00:00
action.go fix: correctly unmarshal entrypoint (#876) 2021-11-13 19:43:31 +00:00
planner.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
planner_test.go refactor: NewWorkflowPlanner (#648) 2021-05-03 07:57:24 -07:00
workflow.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
workflow_test.go fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00