ci: update main.workflow

[skip ci]
This commit is contained in:
Xin Du (Clark) 2018-12-20 16:41:50 +00:00 committed by GitHub
parent b1b9e0bcbc
commit 03779e0ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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