2019-04-29 01:36:10 -05:00
|
|
|
workflow "Docker && Publish Pre-check" {
|
2019-02-15 09:00:54 -05:00
|
|
|
resolves = [
|
|
|
|
"Docker build health check",
|
|
|
|
"Test Publish Verdaccio",
|
2019-02-28 01:07:06 -05:00
|
|
|
]
|
|
|
|
on = "push"
|
2019-02-14 03:14:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
action "Docker build health check" {
|
|
|
|
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
|
|
|
|
args = "build ."
|
2019-04-06 01:35:38 -05:00
|
|
|
env = {
|
|
|
|
VERDACCIO_BUILD_REGISTRY = "https://registry.verdaccio.org"
|
|
|
|
}
|
2019-02-14 03:14:20 -05:00
|
|
|
}
|
2019-02-15 09:00:54 -05:00
|
|
|
|
|
|
|
action "Test Publish Verdaccio" {
|
2019-02-15 11:17:41 -05:00
|
|
|
uses = "verdaccio/github-actions/publish@v0.1.0"
|
2019-02-15 09:00:54 -05:00
|
|
|
needs = ["Docker build health check"]
|
2019-02-28 01:07:06 -05:00
|
|
|
args = "-d"
|
2019-02-15 09:00:54 -05:00
|
|
|
}
|
2019-04-17 00:17:39 -05:00
|
|
|
|
|
|
|
workflow "release" {
|
|
|
|
resolves = [
|
|
|
|
"github-release",
|
|
|
|
"release:lint",
|
|
|
|
]
|
|
|
|
on = "push"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "release:tag-filter" {
|
|
|
|
uses = "actions/bin/filter@master"
|
|
|
|
args = "tag v*"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "release:install" {
|
|
|
|
uses = "docker://node:10"
|
|
|
|
needs = ["release:tag-filter"]
|
|
|
|
args = "yarn install --frozen-lockfile"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "release:build" {
|
|
|
|
uses = "docker://node:10"
|
|
|
|
needs = ["release:install"]
|
|
|
|
args = "yarn run code:build"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "release:lint" {
|
|
|
|
uses = "docker://node:10"
|
|
|
|
needs = ["release:install"]
|
|
|
|
args = "yarn run lint"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "release:test" {
|
|
|
|
uses = "docker://node:10"
|
|
|
|
needs = ["release:build"]
|
|
|
|
args = "sh scripts/puppeteer-setup-ci.sh"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "release:publish" {
|
|
|
|
needs = ["release:test"]
|
|
|
|
uses = "docker://node:10"
|
|
|
|
args = "sh scripts/publish.sh"
|
|
|
|
secrets = [
|
|
|
|
"REGISTRY_AUTH_TOKEN",
|
|
|
|
]
|
|
|
|
env = {
|
|
|
|
REGISTRY_URL = "registry.npmjs.org"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
action "github-release" {
|
|
|
|
needs = ["release:publish"]
|
|
|
|
uses = "docker://node:10"
|
|
|
|
args = "sh scripts/github-release.sh"
|
|
|
|
secrets = [
|
|
|
|
"GITHUB_TOKEN",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow "build and test" {
|
|
|
|
resolves = [
|
|
|
|
"lint",
|
|
|
|
"coverage",
|
|
|
|
]
|
|
|
|
on = "push"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "branch-filter" {
|
|
|
|
uses = "actions/bin/filter@master"
|
|
|
|
args = "branch"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "install" {
|
|
|
|
needs = ["branch-filter"]
|
|
|
|
uses = "docker://node:10"
|
|
|
|
args = "yarn install --frozen-lockfile"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "build" {
|
|
|
|
uses = "docker://node:10"
|
|
|
|
needs = ["install"]
|
|
|
|
args = "yarn run code:build"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "lint" {
|
|
|
|
uses = "docker://node:10"
|
|
|
|
needs = ["install"]
|
|
|
|
args = "yarn run lint"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "test" {
|
|
|
|
uses = "docker://node:10"
|
|
|
|
needs = ["build"]
|
|
|
|
args = "sh scripts/puppeteer-setup-ci.sh"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "coverage" {
|
|
|
|
uses = "docker://node:10"
|
|
|
|
needs = ["test"]
|
|
|
|
args = "yarn run coverage:publish"
|
2019-04-29 01:36:10 -05:00
|
|
|
}
|