mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #866] [CLOSED] Add action post, post-if support #1653
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1653
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/866
Author: @sp-ricard-valverde
Created: 11/10/2021
Status: ❌ Closed
Base:
master← Head:feat/add-post-events📝 Commits (10+)
79a3a13fix(deps): missing hash6eafa5bfeat(data): parse new action fields9fc768ffeat(executor): add NewFinallyPipelineExecutorf440c8cfeat(run_context): add PostActionExecutor560ea62feat(provider): add ActionProviderd0697b9feat(provider): useActionProvider8c2f722feat(provider): implementSetupAction97330f7feat(provider): implementRunAction1890f86feat(provider): implement execute methods22e7e46test(runner): add post action tests📊 Changes
46 files changed (+12824 additions, -221 deletions)
View changed files
📝
.github/dependabot.yml(+6 -6)📝
CONTRIBUTING.md(+2 -2)📝
README.md(+3 -3)📝
cmd/root.go(+4 -1)📝
go.mod(+1 -0)📝
go.sum(+3 -0)📝
pkg/artifacts/server_test.go(+30 -26)📝
pkg/common/executor.go(+19 -0)📝
pkg/model/action.go(+6 -0)📝
pkg/runner/command.go(+3 -0)📝
pkg/runner/command_test.go(+11 -0)➕
pkg/runner/provider.go(+246 -0)📝
pkg/runner/run_context.go(+28 -16)📝
pkg/runner/runner.go(+9 -2)📝
pkg/runner/runner_test.go(+134 -3)📝
pkg/runner/step_context.go(+6 -162)➕
pkg/runner/testdata/actions/post/node12-post-if-always-2/action.yml(+6 -0)➕
pkg/runner/testdata/actions/post/node12-post-if-always-2/index.js(+5 -0)➕
pkg/runner/testdata/actions/post/node12-post-if-always-3/action.yml(+6 -0)➕
pkg/runner/testdata/actions/post/node12-post-if-always-3/index.js(+5 -0)...and 26 more files
📄 Description
fixes #626
Support for running actions that define
poststeps with or withoutpost-ifconditionsMade changes to support dependency injection for modeling Actions by using and implementing ActionProviders, this allows for improved mocking and testing Actions
Because this PR was first aimed at giving support to https://github.com/actions/cache , a simple local cache server is also provided in the form of a Docker image (necessary for the cache action to work properly)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.