ci(trial): add actions

[skip ci]
This commit is contained in:
Xin Du (Clark) 2018-12-20 10:14:26 +00:00 committed by GitHub
parent e71c4559ff
commit 9ddcd2e716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

52
.github/main.workflow vendored Normal file
View File

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