mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-21 07:43:56 +08:00
Adding PR tests
This commit is contained in:
+21
-1
@@ -1,6 +1,6 @@
|
||||
workflow "Build and Publish" {
|
||||
on = "push"
|
||||
resolves = "Docker Publish"
|
||||
on = "push"
|
||||
}
|
||||
|
||||
action "Shell Lint" {
|
||||
@@ -47,3 +47,23 @@ action "Docker Publish" {
|
||||
uses = "actions/docker/cli@master"
|
||||
args = "push borales/yarn"
|
||||
}
|
||||
|
||||
workflow "Pull Request" {
|
||||
on = "pull_request"
|
||||
resolves = ["Docker Lint [PR]", "Shell Lint [PR]", "Test [PR]"]
|
||||
}
|
||||
|
||||
action "Docker Lint [PR]" {
|
||||
uses = "docker://replicated/dockerfilelint"
|
||||
args = "[\"Dockerfile\"]"
|
||||
}
|
||||
|
||||
action "Shell Lint [PR]" {
|
||||
uses = "actions/bin/shellcheck@master"
|
||||
args = "entrypoint.sh"
|
||||
}
|
||||
|
||||
action "Test [PR]" {
|
||||
uses = "actions/bin/bats@master"
|
||||
args = "test/*.bats"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user