Преглед изворни кода

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 година
родитељ
комит
1a244cbbd9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 3 додато и 2 уклоњено
  1. +3
    -2
      .github/main.workflow

+ 3
- 2
.github/main.workflow Прегледај датотеку

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


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


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

Loading…
Откажи
Сачувај