diff --git a/.github/main.workflow b/.github/main.workflow index 66e555e..f5d18c0 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -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" +}