act/pkg/runner
Philipp Hinrichsen e23223ad02
refactor: extract RunContext Executor in JobExecutor (#984)
This splits the executor from the RunContext into its own function
called newJobExecutor.
We defined an interface called jobInfo which is implemented by the RunContext.
This enables better unit testing because only a small interface needs to
be mocked.

This is a preparation for implementing pre and post actions.

Co-authored-by: Björn Brauer <bjoern.brauer@new-work.se>
Co-authored-by: Marcus Noll <marcus.noll@new-work.se>
Co-authored-by: Jonas Holland <jonas.holland@new-work.se>
Co-authored-by: Robert Kowalski <robert.kowalski@new-work.se>
Co-authored-by: Markus Wolf <markus.wolf@new-work.se>

Co-authored-by: Björn Brauer <bjoern.brauer@new-work.se>
Co-authored-by: Marcus Noll <marcus.noll@new-work.se>
Co-authored-by: Jonas Holland <jonas.holland@new-work.se>
Co-authored-by: Robert Kowalski <robert.kowalski@new-work.se>
Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
2022-02-08 17:22:41 +00:00
..
res Add `super-linter` + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
testdata Fix: regression run after failure (#971) 2022-01-27 16:20:44 +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 refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00
expression.go Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
expression_test.go Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
job_executor.go refactor: extract RunContext Executor in JobExecutor (#984) 2022-02-08 17:22:41 +00:00
job_executor_test.go refactor: extract RunContext Executor in JobExecutor (#984) 2022-02-08 17:22:41 +00:00
logger.go feat: allow existing logger from context (#898) 2021-11-27 17:45:56 +00:00
run_context.go refactor: extract RunContext Executor in JobExecutor (#984) 2022-02-08 17:22:41 +00:00
run_context_test.go Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
runner.go refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00
runner_test.go Fix: regression run after failure (#971) 2022-01-27 16:20:44 +00:00
step_context.go fix: set composite outputs on failure (#945) 2022-01-21 08:08:30 -08:00
step_context_test.go refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00