Add github action config

pull/61/head
Amio 2019-07-06 17:26:25 +08:00
rodzic ed00fcebad
commit 3c63b7e6af
1 zmienionych plików z 25 dodań i 0 usunięć

25
.github/main.workflow vendored 100644
Wyświetl plik

@ -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"]
}