act/pkg
Aaron Holmes bef9b5c3c7
feat: Support "result" on "needs" context. ()
* 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 

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

Related 
Fixes 

* Add integration test to "needs" context change.

Relates: 

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

* 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 ()

* 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 ()

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
..
artifacts lint: add ReadHeaderTimeout () 2022-07-25 12:12:48 +00:00
common refactor: move from io/ioutil to io and os packages () 2022-10-29 17:15:38 +00:00
container refactor: share UpdateFromEnv logic () 2022-12-06 16:19:27 +00:00
exprparser feat: Support "result" on "needs" context. () 2022-12-19 08:37:53 +00:00
lookpath feat: Host environment () 2022-11-16 21:29:45 +00:00
model refactor: fix savestate in pre steps () 2022-12-15 17:08:31 +00:00
runner feat: Support "result" on "needs" context. () 2022-12-19 08:37:53 +00:00