mirror of
https://github.com/actions/setup-node.git
synced 2025-10-15 14:03:59 +08:00
Add actions ci
This commit is contained in:
27
.github/main.workflow
vendored
Normal file
27
.github/main.workflow
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
workflow "CI" {
|
||||||
|
on = "push"
|
||||||
|
resolves = ["Format", "Test"]
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Dependencies" {
|
||||||
|
uses = "actions/npm@v2.0.0"
|
||||||
|
args = "ci"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Build" {
|
||||||
|
needs = "Dependencies"
|
||||||
|
uses = "actions/npm@v2.0.0"
|
||||||
|
args = "run build"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Format" {
|
||||||
|
needs = "Dependencies"
|
||||||
|
uses = "actions/npm@v2.0.0"
|
||||||
|
args = "run format-check"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Test" {
|
||||||
|
needs = "Build"
|
||||||
|
uses = "actions/npm@v2.0.0"
|
||||||
|
args = "test"
|
||||||
|
}
|
Reference in New Issue
Block a user