2018-12-20 10:14:26 +00:00
|
|
|
workflow "Nuxt.js Actions" {
|
|
|
|
on = "push"
|
|
|
|
resolves = ["Npm Audit", "Lint", "Test: E2E", "Coverage: Unit"]
|
|
|
|
}
|
|
|
|
|
2018-12-20 10:35:55 +00:00
|
|
|
action "nuxt/actions-yarn@master" {
|
|
|
|
uses = "nuxt/actions-yarn@master"
|
2018-12-20 10:14:26 +00:00
|
|
|
runs = "install"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Lint" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
|
|
|
needs = ["nuxt/actions-yarn@master"]
|
2018-12-20 10:14:26 +00:00
|
|
|
runs = "lint"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Build" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
|
|
|
needs = ["nuxt/actions-yarn@master"]
|
2018-12-20 10:14:26 +00:00
|
|
|
runs = "test:fixtures"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Npm Audit" {
|
|
|
|
uses = "actions/npm@e7aaefe"
|
2018-12-20 10:35:55 +00:00
|
|
|
needs = ["nuxt/actions-yarn@master"]
|
2018-12-20 10:14:26 +00:00
|
|
|
runs = "audit"
|
|
|
|
args = " --audit-level=moderate"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Coverage: Build" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
2018-12-20 10:14:26 +00:00
|
|
|
needs = ["Build"]
|
|
|
|
runs = "coverage"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Test: Unit" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
2018-12-20 10:14:26 +00:00
|
|
|
runs = "test:unit"
|
|
|
|
needs = ["Coverage: Build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Test: E2E" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
2018-12-20 10:14:26 +00:00
|
|
|
runs = "test:e2e"
|
|
|
|
needs = ["Coverage: Build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Coverage: Unit" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
2018-12-20 10:14:26 +00:00
|
|
|
needs = ["Test: Unit"]
|
|
|
|
runs = "coverage"
|
|
|
|
}
|