Nuxt/.github/main.workflow
Xin Du (Clark) 03779e0ed3
ci: update main.workflow
[skip ci]
2018-12-20 16:41:50 +00:00

39 lines
753 B
HCL

workflow "Nuxt.js Actions" {
on = "push"
resolves = ["Audit", "Lint", "Test: Unit", "Test: E2E"]
}
action "Install" {
uses = "nuxt/actions-yarn@master"
args = "install --frozen-lockfile --non-interactive"
}
action "Lint" {
uses = "nuxt/actions-yarn@master"
args = "lint"
}
action "Audit" {
uses = "nuxt/actions-yarn@master"
needs = ["Install"]
args = "audit"
}
action "Build" {
uses = "nuxt/actions-yarn@master"
needs = ["Install"]
runs = "yarn test:fixtures --coverage && yarn coverage"
}
action "Test: Unit" {
uses = "nuxt/actions-yarn@master"
needs = ["Build"]
runs = "yarn test:unit --coverage && yarn coverage"
}
action "Test: E2E" {
uses = "nuxt/actions-yarn@master"
args = "test:e2e"
needs = ["Build"]
}