ci: add branch filter

This commit is contained in:
Clark Du 2018-12-20 16:51:58 +00:00
parent 03779e0ed3
commit f1a3ce1a7a

17
.github/main.workflow vendored
View File

@ -3,22 +3,27 @@ workflow "Nuxt.js Actions" {
resolves = ["Audit", "Lint", "Test: Unit", "Test: E2E"]
}
action "branch-filter" {
uses = "actions/bin/filter@master"
args = ["branch dev"]
}
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 "Lint" {
uses = "nuxt/actions-yarn@master"
needs = ["Install"]
args = "lint"
}
action "Build" {
uses = "nuxt/actions-yarn@master"
needs = ["Install"]