Create a workflow for validations

When I push
I would like to have the code validated
This commit is contained in:
Ole Christian Langfjæran
2019-01-07 10:58:43 +01:00
committed by GitHub
parent 529a438c0b
commit 3259ae8d93

23
.github/main.workflow vendored Normal file
View File

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