Adding PR tests

This commit is contained in:
Oleksandr Bordun 2019-04-21 23:42:36 +02:00 committed by GitHub
parent ed3b33b7fe
commit 6f4d654ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/main.workflow vendored
View File

@ -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"
}