mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
4efbad1ef7
* chore: bumps verdaccio-htpasswd@2.0.0 * chore: removes circle ci and publish using github-actions * chore: adds bash doctype * chore: adds build and test workflow * chore: fixes coverage error * chore: adds e2e tests * chore: adds headless arg * chore: sets puppeteer in docker env * chore: runs tets through bash * chore: minor fixes
122 lines
No EOL
2.2 KiB
HCL
122 lines
No EOL
2.2 KiB
HCL
workflow "New workflow" {
|
|
resolves = [
|
|
"Docker build health check",
|
|
"Test Publish Verdaccio",
|
|
]
|
|
on = "push"
|
|
}
|
|
|
|
action "Docker build health check" {
|
|
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
|
|
args = "build ."
|
|
env = {
|
|
VERDACCIO_BUILD_REGISTRY = "https://registry.verdaccio.org"
|
|
}
|
|
}
|
|
|
|
action "Test Publish Verdaccio" {
|
|
uses = "verdaccio/github-actions/publish@v0.1.0"
|
|
needs = ["Docker build health check"]
|
|
args = "-d"
|
|
}
|
|
|
|
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"
|
|
} |