kopia lustrzana https://github.com/badgen/badgen
Add github action config
rodzic
ed00fcebad
commit
3c63b7e6af
|
@ -0,0 +1,25 @@
|
||||||
|
workflow "Test & Cov" {
|
||||||
|
on = "push"
|
||||||
|
resolves = ["codecov"]
|
||||||
|
}
|
||||||
|
|
||||||
|
action "install" {
|
||||||
|
uses = "docker://node:alpine"
|
||||||
|
runs = "npm"
|
||||||
|
args = "ci"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "test" {
|
||||||
|
needs = "npm ci"
|
||||||
|
uses = "docker://node:alpine"
|
||||||
|
runs = "npm"
|
||||||
|
args = "test"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "codecov" {
|
||||||
|
needs = "npm test"
|
||||||
|
uses = "docker://node"
|
||||||
|
runs = "npx"
|
||||||
|
args = "codecov"
|
||||||
|
secrets = ["CODECOV_TOKEN"]
|
||||||
|
}
|
Ładowanie…
Reference in New Issue