add tests for various actions

This commit is contained in:
Casey Lee
2019-01-30 23:53:39 -08:00
parent 5d0a8d26ae
commit ecae898a7b
34 changed files with 4197 additions and 4 deletions

21
actions/testdata/basic.workflow vendored Normal file
View File

@@ -0,0 +1,21 @@
workflow "build-and-deploy" {
on = "push"
resolves = ["deploy"]
}
action "build" {
uses = "./action1"
args = "echo 'build'"
}
action "test" {
uses = "docker://ubuntu:18.04"
args = "echo 'test'"
needs = ["build"]
}
action "deploy" {
uses = "./action2"
runs = ["/bin/sh", "-c", "cat $GITHUB_EVENT_PATH"]
needs = ["test"]
}