From 6f4d654ec18e619e5c4c1ea43864eaf6711e598a Mon Sep 17 00:00:00 2001 From: Oleksandr Bordun Date: Sun, 21 Apr 2019 23:42:36 +0200 Subject: [PATCH] Adding PR tests --- .github/main.workflow | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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" +}