act/pkg/runner
Aaron Holmes bef9b5c3c7
feat: Support "result" on "needs" context. (#1497)
* Support "result" on "needs" context.

This change adds "result" to a job's "needs" context, as documented [here](https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context). `act` currently tracks the success/failure/cancelled status of a job, but does not include this value the `needs` context.

Fixes #1367

* Change `Needs` to use a new struct rather than the open type `interface{}`.

Related #1497
Fixes #1367

* Add integration test to "needs" context change.

Relates: #1497

* feat: allow to spawn and run a local reusable workflow (#1423)

* feat: allow to spawn and run a local reusable workflow

This change contains the ability to parse/plan/run a local
reusable workflow.
There are still numerous things missing:

- inputs
- secrets
- outputs

* feat: add workflow_call inputs

* test: improve inputs test

* feat: add input defaults

* feat: allow expressions in inputs

* feat: use context specific expression evaluator

* refactor: prepare for better re-usability

* feat: add secrets for reusable workflows

* test: use secrets during test run

* feat: handle reusable workflow outputs

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* refactor: fix savestate in pre steps (#1466)

* refactor: fix savestate in pre steps

* fix pre steps collision

* fix tests

* remove

* enable tests

* Update pkg/runner/action.go

* Rename InterActionState to IntraActionState

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* fix: tail (not absolute) as entrypoint of job container (#1506)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* Fix conflict in merge.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-19 08:37:53 +00:00
..
res Add super-linter + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
testdata feat: Support "result" on "needs" context. (#1497) 2022-12-19 08:37:53 +00:00
action.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
action_composite.go feat: interpolate the step names (#1422) 2022-11-16 21:55:23 +00:00
action_test.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
command.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
command_test.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
container_mock_test.go refactor: fix add-path / GITHUB_PATH commands (#1472) 2022-12-09 11:16:15 +00:00
expression.go feat: Support "result" on "needs" context. (#1497) 2022-12-19 08:37:53 +00:00
expression_test.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
job_executor.go feat: allow to spawn and run a local reusable workflow (#1423) 2022-12-15 16:45:22 +00:00
job_executor_test.go feat: allow to spawn and run a local reusable workflow (#1423) 2022-12-15 16:45:22 +00:00
logger.go feat: JobLoggerFactory (#1496) 2022-12-09 10:25:32 +00:00
reusable_workflow.go feat: allow to spawn and run a local reusable workflow (#1423) 2022-12-15 16:45:22 +00:00
run_context.go fix: tail (not absolute) as entrypoint of job container (#1506) 2022-12-15 17:31:59 +00:00
run_context_test.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
runner.go feat: allow to spawn and run a local reusable workflow (#1423) 2022-12-15 16:45:22 +00:00
runner_test.go feat: Support "result" on "needs" context. (#1497) 2022-12-19 08:37:53 +00:00
step.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
step_action_local.go Fix composite input handling (#1345) 2022-10-06 21:58:16 +00:00
step_action_local_test.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
step_action_remote.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
step_action_remote_test.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
step_docker.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
step_docker_test.go refactor: fix add-path / GITHUB_PATH commands (#1472) 2022-12-09 11:16:15 +00:00
step_factory.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
step_factory_test.go feat: split job steps into its own files/structs (#1004) 2022-03-22 14:13:00 -07:00
step_run.go refactor: fix add-path / GITHUB_PATH commands (#1472) 2022-12-09 11:16:15 +00:00
step_run_test.go refactor: fix add-path / GITHUB_PATH commands (#1472) 2022-12-09 11:16:15 +00:00
step_test.go refactor: fix add-path / GITHUB_PATH commands (#1472) 2022-12-09 11:16:15 +00:00