mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 08:53:47 +08:00
Create a workflow for validations
When I push I would like to have the code validated
This commit is contained in:
committed by
GitHub
parent
529a438c0b
commit
3259ae8d93
23
.github/main.workflow
vendored
Normal file
23
.github/main.workflow
vendored
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user