Nuxt/.github/main.workflow

39 lines
753 B
Plaintext
Raw Normal View History

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