fix: added tests and improved code
This commit is contained in:
parent
3cb43ad041
commit
94401575cc
4 changed files with 116 additions and 47 deletions
14
actions/testdata/env.workflow
vendored
14
actions/testdata/env.workflow
vendored
|
|
@ -1,9 +1,17 @@
|
|||
workflow "test" {
|
||||
on = "push"
|
||||
resolves = ["test-action"]
|
||||
resolves = [
|
||||
"test-action-repo",
|
||||
"test-action-ref",
|
||||
]
|
||||
}
|
||||
|
||||
action "test-action" {
|
||||
action "test-action-repo" {
|
||||
uses = "docker://alpine:3.9"
|
||||
runs = ["sh", "-c", "echo $GITHUB_REPOSITORY | grep '^nektos/act$'"]
|
||||
}
|
||||
}
|
||||
|
||||
action "test-action-ref" {
|
||||
uses = "docker://alpine:3.9"
|
||||
runs = ["sh", "-c", "echo $GITHUB_REF | grep '^refs/'"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue