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
|
|
|
}
|
|
|
|
|
2018-12-20 16:51:58 +00:00
|
|
|
action "branch-filter" {
|
|
|
|
uses = "actions/bin/filter@master"
|
|
|
|
args = ["branch dev"]
|
|
|
|
}
|
|
|
|
|
2018-12-20 11:08:28 +00:00
|
|
|
action "Install" {
|
2018-12-20 10:35:55 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-12-20 16:51:58 +00:00
|
|
|
action "Audit" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
2018-12-20 16:51:58 +00:00
|
|
|
args = "audit"
|
2018-12-20 10:14:26 +00:00
|
|
|
}
|
|
|
|
|
2018-12-20 16:51:58 +00:00
|
|
|
action "Lint" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
2018-12-20 11:08:28 +00:00
|
|
|
needs = ["Install"]
|
2018-12-20 16:51:58 +00:00
|
|
|
args = "lint"
|
2018-12-20 10:14:26 +00:00
|
|
|
}
|
|
|
|
|
2018-12-20 16:41:50 +00:00
|
|
|
action "Build" {
|
2018-12-20 10:35:55 +00:00
|
|
|
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" {
|
2018-12-20 10:35:55 +00:00
|
|
|
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" {
|
2018-12-20 10:35:55 +00:00
|
|
|
uses = "nuxt/actions-yarn@master"
|
2018-12-20 10:44:38 +00:00
|
|
|
args = "test:e2e"
|
2018-12-20 16:41:50 +00:00
|
|
|
needs = ["Build"]
|
2018-12-20 10:14:26 +00:00
|
|
|
}
|