mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
ci: update main.workflow
[skip ci]
This commit is contained in:
parent
b1b9e0bcbc
commit
03779e0ed3
@ -1,51 +1,38 @@
|
|||||||
workflow "Nuxt.js Actions" {
|
workflow "Nuxt.js Actions" {
|
||||||
on = "push"
|
on = "push"
|
||||||
resolves = ["Npm Audit", "Lint", "Test: E2E", "Coverage: Unit"]
|
resolves = ["Audit", "Lint", "Test: Unit", "Test: E2E"]
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Install" {
|
action "Install" {
|
||||||
uses = "nuxt/actions-yarn@master"
|
uses = "nuxt/actions-yarn@master"
|
||||||
args = "install"
|
args = "install --frozen-lockfile --non-interactive"
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Lint" {
|
action "Lint" {
|
||||||
uses = "nuxt/actions-yarn@master"
|
uses = "nuxt/actions-yarn@master"
|
||||||
needs = ["Install"]
|
|
||||||
args = "lint"
|
args = "lint"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
action "Audit" {
|
||||||
|
uses = "nuxt/actions-yarn@master"
|
||||||
|
needs = ["Install"]
|
||||||
|
args = "audit"
|
||||||
|
}
|
||||||
|
|
||||||
action "Build" {
|
action "Build" {
|
||||||
uses = "nuxt/actions-yarn@master"
|
uses = "nuxt/actions-yarn@master"
|
||||||
needs = ["Install"]
|
needs = ["Install"]
|
||||||
args = "test:fixtures"
|
runs = "yarn test:fixtures --coverage && yarn coverage"
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Test: Unit" {
|
action "Test: Unit" {
|
||||||
uses = "nuxt/actions-yarn@master"
|
uses = "nuxt/actions-yarn@master"
|
||||||
args = "test:unit"
|
needs = ["Build"]
|
||||||
needs = ["Coverage: Build"]
|
runs = "yarn test:unit --coverage && yarn coverage"
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Test: E2E" {
|
action "Test: E2E" {
|
||||||
uses = "nuxt/actions-yarn@master"
|
uses = "nuxt/actions-yarn@master"
|
||||||
args = "test:e2e"
|
args = "test:e2e"
|
||||||
needs = ["Coverage: Build"]
|
needs = ["Build"]
|
||||||
}
|
|
||||||
|
|
||||||
action "Coverage: Unit" {
|
|
||||||
uses = "nuxt/actions-yarn@master"
|
|
||||||
needs = ["Test: Unit"]
|
|
||||||
args = "coverage"
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user