Skip to content

Commit c6e85e0

Browse files
committed
ci: Githib actions improved
1 parent a343c42 commit c6e85e0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/main.workflow

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
1-
workflow "Main Workflow" {
1+
workflow "Main" {
22
on = "push"
33
resolves = ["Publish"]
44
}
55

66
action "Install" {
77
uses = "actions/npm@master"
8+
runs = "npm"
89
args = "install"
910
}
1011

1112
action "Test" {
1213
needs = "Install"
1314
uses = "actions/npm@master"
15+
runs = "npm"
1416
args = "test"
1517
}
1618

1719
action "Build" {
18-
needs = "Test"
20+
needs = "Install"
1921
uses = "actions/npm@master"
22+
runs = "npm"
2023
args = "run build"
2124
}
2225

2326
# Filter for master branch
2427
action "Master" {
25-
needs = "Build"
28+
needs = ["Test", "Build"]
2629
uses = "actions/bin/filter@master"
2730
args = "branch master"
2831
}

0 commit comments

Comments
 (0)