act_runner/pkg/runner/testdata
Markus Wolf 679cac1677
Fix composite input handling (#1345)
* test: add test case for #1319

* fix: setup of composite inputs

This change fixes the composite action setup handling of inputs.

All inputs are taken from the env now. The env is composed of
the 'level above'.
For example:
- step env -> taken from run context
- action env -> taken from step env
- composite env -> taken from action env

Before this change the env setup for steps, actions and composite
run contexts was harder to understand as all parts looked into
one of these: parent run context, step, action, composite run context.

Now the 'data flow' is from higher levels to lower levels which should
make it more clean.

Fixes #1319

* test: add simple remote composite action test

Since we don't have a remote composite test at all
before this, we need at least the simplest case.
This does not check every feature, but ensures basic
availability of remote composite actions.

* refactor: move ActionRef and ActionRepository

Moving ActionRef and ActionRepository from RunContext into the
step, allows us to remove the - more or less - ugly copy operations
from the RunContext.

This is more clean, as each step does hold the data required anyway
and the RunContext shouldn't know about the action details.

* refactor: remove unused properties
2022-10-06 21:58:16 +00:00
..
act-composite-env-test refactor: remove composite action runcontext workaround (#1085) 2022-05-11 19:06:05 +00:00
actions fix: set composite outputs on failure (#945) 2022-01-21 08:08:30 -08:00
actions-environment-and-context-tests refactor: remove composite action runcontext workaround (#1085) 2022-05-11 19:06:05 +00:00
basic feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
checkout Hotfix: Skip Checkout Regression (#680) 2021-05-10 15:12:57 +00:00
commands Update images, fix extrapath (#723) 2021-06-10 23:12:05 +00:00
composite-fail-with-output fix: set composite outputs on failure (#945) 2022-01-21 08:08:30 -08:00
container-hostname feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
defaults-run
dir with spaces Add proper support for working-directory & fix command builder (#772) 2021-08-10 19:40:20 +00:00
ensure-post-steps fix: ensure all post steps are executed (#1286) 2022-07-29 19:43:24 +00:00
env-and-path Fix regex for GITHUB_ENV parsing (#893) 2021-11-19 17:36:50 +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 fix: deep evaluate matrix strategy (#964) 2022-02-15 16:35:02 +00:00
evalmatrix-merge-map fix: deep evaluate matrix strategy (#964) 2022-02-15 16:35:02 +00:00
evalmatrixneeds fix: deep evaluate matrix strategy (#964) 2022-02-15 16:35:02 +00:00
evalmatrixneeds2 fix: deep evaluate matrix strategy (#964) 2022-02-15 16:35:02 +00:00
fail feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
if-env-act Test: env.ACT in if condition of the workflow (#965) 2022-01-25 09:27:27 -08:00
if-expressions fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
issue-104
issue-122
issue-141
issue-228
issue-597 Expression evaluator fixes (#1009) 2022-02-25 18:39:50 +00:00
issue-598 Fixes #598 (#628) 2021-05-05 13:04:03 -07:00
issue-1195 pkg/runner: add support to replace GitHub's env (#1197) 2022-06-08 15:25:51 +00:00
job-container feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
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-nil-step fix: panic if a step in a job is nil (#1145) 2022-05-12 19:23:34 +00:00
job-status-check fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
local-action-docker-url Refactor local, composite actions and run steps (#712) 2021-06-10 15:28:23 +00:00
local-action-dockerfile Feature: uses in composite (#793) 2021-12-22 19:19:50 +00:00
local-action-js feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
local-action-via-composite-dockerfile Feature: uses in composite (#793) 2021-12-22 19:19:50 +00:00
localdockerimagetest_ Fix docker: invalid reference format (#767) 2021-08-09 18:16:31 +00:00
mask-values Improve logging (#1171) 2022-06-17 15:55:21 +00:00
matrix
matrix-include-exclude
node
non-existent-action Fix: regression run after failure (#971) 2022-01-27 16:20:44 +00:00
outputs Don't interpolate joboutputs, before job is done (#894) 2021-11-24 15:49:08 +00:00
parallel feat: add node16 support (#922) 2021-12-22 19:34:18 +00:00
pull-request
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
remote-action-js
runs-on
secrets
shells fix: use docker images from dockerhub (#1249) 2022-07-08 00:21:51 +00:00
steps-context Add more steps context support (#887) 2021-11-27 17:55:26 +00:00
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 Feature: uses in composite (#793) 2021-12-22 19:19:50 +00:00
uses-composite-with-inputs Fix composite input handling (#1345) 2022-10-06 21:58:16 +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 fix: don't overwrite with empty cmd/entrypoint (#1076) 2022-03-29 18:00:52 +00:00
uses-github-empty
uses-github-full-sha refactor: return more errors, add more tests (#679) 2021-05-08 03:29:03 +00:00
uses-github-noref
uses-github-path
uses-github-root
uses-github-short-sha refactor: return more errors, add more tests (#679) 2021-05-08 03:29:03 +00:00
uses-nested-composite Fix composite input handling (#1345) 2022-10-06 21:58:16 +00:00
uses-workflow fix: return error on reusable workflows (#1093) 2022-03-30 17:20:45 +00:00
workdir Add proper support for working-directory & fix command builder (#772) 2021-08-10 19:40:20 +00:00