Просмотр исходного кода

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 лет назад
Родитель
Сommit
1a244cbbd9
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 3 добавлений и 2 удалений
  1. +3
    -2
      .github/main.workflow

+ 3
- 2
.github/main.workflow Просмотреть файл

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

Загрузка…
Отмена
Сохранить