Kaynağa Gözat

Install deps *before* tests in Actions workflow

While creating the `$ npm install` step in the
GitHub Actions workflow, I forgot to state the fact that
the `$ npm test` step "needs" the install deps step
to have successfully run first.
tags/v3.0.2
Phillip Johnsen GitHub 6 yıl önce
ebeveyn
işleme
1a244cbbd9
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. +3
    -2
      .github/main.workflow

+ 3
- 2
.github/main.workflow Dosyayı Görüntüle

@@ -1,5 +1,5 @@
workflow "Verify changes on push" {
resolves = ["Run all tests"]
resolves = ["Run unit tests"]
on = "push"
}

@@ -8,7 +8,8 @@ action "Install dependencies" {
args = "install"
}

action "Run all tests" {
action "Run unit tests" {
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
needs = "Install dependencies"
args = "test"
}

Yükleniyor…
İptal
Kaydet