From 3259ae8d9393a83aaa45cc521201b24bde56c7bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Christian=20Langfj=C3=A6ran?= Date: Mon, 7 Jan 2019 10:58:43 +0100 Subject: [PATCH] Create a workflow for validations When I push I would like to have the code validated --- .github/main.workflow | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/main.workflow diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..f529e02 --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,23 @@ +workflow "Build" { + on = "push" + resolves = "Docker build" +} + +action "Lint" { + uses = "actions/action-builder/shell@master" + runs = "make" + args = "lint" +} + +action "Test" { + uses = "actions/action-builder/shell@master" + runs = "make" + args = "test" +} + +action "Docker build" { + needs = ["Lint", "Test"] + uses = "actions/action-builder/docker@master" + runs = "make" + args = "build" +}