act_runner/pkg/runner/testdata
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
..
.github/workflows feat: allow to spawn and run a local reusable workflow (#1423) 2022-12-15 16:45:22 +00:00
GITHUB_STATE refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
act-composite-env-test
actions
actions-environment-and-context-tests
basic
checkout
commands
composite-fail-with-output
container-hostname fix: support docker create arguments from container.options (#1022) (#1351) 2022-10-06 22:09:43 +00:00
defaults-run
dir with spaces
ensure-post-steps fix: ensure all post steps are executed (#1286) 2022-07-29 19:43:24 +00:00
env-and-path Fixes #1387 (#1388) 2022-10-18 22:27:28 +00:00
environment-files refactor: share UpdateFromEnv logic (#1457) 2022-12-06 16:19:27 +00:00
environment-files-parser-bug refactor: share UpdateFromEnv logic (#1457) 2022-12-06 16:19:27 +00:00
environment-variables fix: handle env-vars case sensitive (#1493) 2022-12-07 15:31:33 +00:00
evalenv Made env interpolated instead of evaluated. (#1222) 2022-07-27 19:46:04 +00:00
evalmatrix fix: processing of strategy.matrix.include (#1200) 2022-06-20 15:33:07 -07:00
evalmatrix-merge-array
evalmatrix-merge-map
evalmatrixneeds
evalmatrixneeds2
fail
if-env-act
if-expressions
inputs-via-env-context fix: step env is unavailable in with property expr (#1458) 2022-12-06 16:46:20 +00:00
issue-104 fix: ci is failing since 2022-10-17 (#1397) 2022-10-17 16:03:17 +00:00
issue-122
issue-141
issue-228
issue-597
issue-598
issue-1195 pkg/runner: add support to replace GitHub's env (#1197) 2022-06-08 15:25:51 +00:00
job-container
job-container-invalid-credentials fix: crash on invalid docker credentials (#1348) 2022-09-26 06:17:06 +00:00
job-container-non-root fix: use docker images from dockerhub (#1249) 2022-07-08 00:21:51 +00:00
job-needs-context-contains-result feat: Support "result" on "needs" context. (#1497) 2022-12-19 08:37:53 +00:00
job-nil-step fix: panic if a step in a job is nil (#1145) 2022-05-12 19:23:34 +00:00
job-status-check
local-action-docker-url
local-action-dockerfile
local-action-js
local-action-via-composite-dockerfile fix: ci is failing since 2022-10-17 (#1397) 2022-10-17 16:03:17 +00:00
localdockerimagetest_
mask-values Improve logging (#1171) 2022-06-17 15:55:21 +00:00
matrix
matrix-include-exclude
networking test: add test for networking setup in act (#1375) 2022-10-12 16:30:56 +00:00
nix-prepend-path feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
node
non-existent-action
outputs
parallel
pull-request fix: keep path to event json file in composite actions (#1428) 2022-11-16 17:00:49 +00:00
python
remote-action-composite-js-pre-with-defaults fix: missing defaults in nodejs pre (#1349) 2022-09-26 06:08:08 +00:00
remote-action-docker fix: ci is failing since 2022-10-17 (#1397) 2022-10-17 16:03:17 +00:00
remote-action-js
runs-on
secrets
shells fix: use docker images from dockerhub (#1249) 2022-07-08 00:21:51 +00:00
steps-context
uses-action-with-pre-and-post-step implement pre and post steps (#1089) 2022-05-24 13:36:06 +00:00
uses-and-run-in-one-step
uses-composite Fix composite input handling (#1345) 2022-10-06 21:58:16 +00:00
uses-composite-with-error
uses-composite-with-inputs fix: re-evaluate env for remote composite actions (#1385) 2022-10-12 16:19:32 +00:00
uses-composite-with-pre-and-post-steps implement pre and post steps (#1089) 2022-05-24 13:36:06 +00:00
uses-docker-url
uses-github-empty
uses-github-full-sha
uses-github-noref
uses-github-path
uses-github-root
uses-github-short-sha
uses-nested-composite Fix composite input handling (#1345) 2022-10-06 21:58:16 +00:00
uses-workflow feat: allow to spawn and run a local reusable workflow (#1423) 2022-12-15 16:45:22 +00:00
windows-add-env feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
windows-prepend-path feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
workdir
workflow_dispatch Mapping `workflow_dispatch` inputs into the Expression `inputs` context (#1363) 2022-10-17 16:25:26 +00:00
workflow_dispatch-scalar fix: nil pointer access ( workflow_dispatch ) 2022-11-10 20:16:00 +00:00
workflow_dispatch-scalar-composite-action fix: nil pointer access ( workflow_dispatch ) 2022-11-10 20:16:00 +00:00
workflow_dispatch_no_inputs_mapping fix: nil pointer access ( workflow_dispatch ) 2022-11-10 20:16:00 +00:00