Skip to content

Commit ea1ebde

Browse files
committed
chore: reverts commit fc11429
1 parent c4cb559 commit ea1ebde

File tree

2 files changed

+45
-69
lines changed

2 files changed

+45
-69
lines changed

.github/main.workflow

+45-59
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,79 @@
1-
workflow "build & test" {
2-
resolves = [,
3-
"node:12"
1+
workflow "build and test" {
2+
resolves = [
3+
"lint",
4+
"test",
5+
"branch-filter",
46
]
5-
on = "pull_request"
7+
on = "push"
68
}
79

8-
action "PR:filter" {
10+
action "branch-filter" {
911
uses = "actions/bin/filter@master"
10-
args = "action 'opened|synchronize'"
12+
args = "branch"
1113
}
1214

13-
action "node:8" {
14-
needs = ["PR:filter"]
15-
uses = "docker://node:8"
16-
args = "sh scripts/build-test.sh"
15+
action "install" {
16+
uses = "docker://node:10"
17+
args = "yarn install"
1718
}
1819

19-
action "node:10" {
20-
needs = ["PR:filter"]
20+
action "build" {
2121
uses = "docker://node:10"
22-
args = "sh scripts/build-test.sh"
22+
needs = ["install"]
23+
args = "yarn run build"
2324
}
2425

25-
action "node:11" {
26-
needs = ["PR:filter"]
27-
uses = "docker://node:11"
28-
args = "sh scripts/build-test.sh"
26+
action "lint" {
27+
uses = "docker://node:10"
28+
needs = ["install"]
29+
args = "yarn run lint"
2930
}
3031

31-
action "node:12" {
32-
needs = [
33-
"node:8",
34-
"node:10",
35-
"node:11"
36-
]
37-
uses = "docker://node:12"
38-
args = "sh scripts/build-test.sh"
32+
action "test" {
33+
uses = "docker://node:10"
34+
needs = ["build"]
35+
args = "yarn run test"
3936
}
4037

41-
workflow "build, test & release" {
38+
workflow "release" {
4239
resolves = [
43-
"github-release"
40+
"github-release",
41+
"release:lint",
4442
]
4543
on = "push"
4644
}
4745

48-
action "push:node:8" {
49-
uses = "docker://node:8"
50-
args = "sh scripts/build-test.sh"
46+
action "release:tag-filter" {
47+
uses = "actions/bin/filter@master"
48+
args = "tag v*"
5149
}
5250

53-
action "push:node:10" {
51+
action "release:install" {
5452
uses = "docker://node:10"
55-
args = "sh scripts/build-test.sh"
56-
}
57-
58-
action "push:node:11" {
59-
uses = "docker://node:11"
60-
args = "sh scripts/build-test.sh"
53+
needs = ["release:tag-filter"]
54+
args = "yarn install"
6155
}
6256

63-
action "push:node:12" {
64-
needs = [
65-
"push:node:8",
66-
"push:node:10",
67-
"push:node:11",
68-
]
69-
uses = "docker://node:12"
70-
args = "sh scripts/build-test.sh"
57+
action "release:build" {
58+
uses = "docker://node:10"
59+
needs = ["release:install"]
60+
args = "yarn run build"
7161
}
7262

73-
action "release:filter" {
74-
needs = [
75-
"push:node:12"
76-
]
77-
uses = "actions/bin/filter@master"
78-
args = "tag v*"
63+
action "release:lint" {
64+
uses = "docker://node:10"
65+
needs = ["release:install"]
66+
args = "yarn run lint"
7967
}
8068

81-
action "release:authorization" {
82-
needs = ["release:filter"]
83-
uses = "actions/bin/filter@master"
84-
args = ["actor", "ayusharma", "juanpicado"]
69+
action "release:test" {
70+
uses = "docker://node:10"
71+
needs = ["release:build"]
72+
args = "yarn run test"
8573
}
8674

8775
action "release:publish" {
88-
needs = [
89-
"release:authorization"
90-
]
76+
needs = ["release:test"]
9177
uses = "docker://node:10"
9278
args = "sh scripts/publish.sh"
9379
secrets = [
@@ -105,4 +91,4 @@ action "github-release" {
10591
secrets = [
10692
"GITHUB_TOKEN",
10793
]
108-
}
94+
}

scripts/build-test.sh

-10
This file was deleted.

0 commit comments

Comments
 (0)