mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
add tests for various actions
This commit is contained in:
parent
d956aff028
commit
3797a9b42e
33 changed files with 4196 additions and 3 deletions
21
actions/testdata/basic.workflow
vendored
Normal file
21
actions/testdata/basic.workflow
vendored
Normal 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"]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue