2019-02-05 02:18:16 +03:00
|
|
|
workflow "lint, test, deploy, publish" {
|
2019-02-05 01:00:35 +03:00
|
|
|
on = "push"
|
|
|
|
resolves = [
|
|
|
|
"lint",
|
|
|
|
"test",
|
|
|
|
"deploy",
|
2019-02-05 02:18:16 +03:00
|
|
|
"publish",
|
2019-02-05 01:00:35 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "install" {
|
|
|
|
uses = "actions/npm@master"
|
2019-02-06 22:39:59 +03:00
|
|
|
args = "ci"
|
2019-02-05 01:00:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
action "lint" {
|
|
|
|
needs = "install"
|
|
|
|
uses = "actions/npm@master"
|
|
|
|
args = "run lint"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "test" {
|
|
|
|
needs = "install"
|
|
|
|
uses = "actions/npm@master"
|
|
|
|
args = "test"
|
|
|
|
}
|
|
|
|
|
2019-02-06 22:16:33 +03:00
|
|
|
action "deploy" {
|
2019-02-05 01:00:35 +03:00
|
|
|
needs = "install"
|
2019-02-06 22:16:33 +03:00
|
|
|
uses = "primer/deploy@status-config-redux"
|
2019-02-06 01:05:48 +03:00
|
|
|
secrets = [
|
|
|
|
"NOW_TOKEN",
|
|
|
|
"GITHUB_TOKEN",
|
|
|
|
]
|
2019-02-05 02:03:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
action "publish" {
|
|
|
|
needs = ["lint", "test"]
|
2019-02-06 23:37:48 +03:00
|
|
|
uses = "primer/publish@8435e6f"
|
2019-02-05 01:00:35 +03:00
|
|
|
}
|