Skip to content

Commit

Permalink
feat(workflow): add PR workflow for CI
Browse files Browse the repository at this point in the history
Signed-off-by: Will Soto <willsoto@users.noreply.github.com>
  • Loading branch information
willsoto committed Feb 4, 2019
1 parent 69d16c6 commit 99e3489
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
workflow "CI" {
on = "push"
on = "push"
resolves = ["Unit Tests", "Build", "Typings"]
}

workflow "PR" {
on = "pull_request"
resolves = ["Unit Tests", "Build", "Typings"]
}

Expand All @@ -10,22 +15,22 @@ action "Install" {
}

action "Unit Tests" {
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
needs = ["Install"]
runs = "yarn"
args = "test"
runs = "yarn"
args = "test"
}

action "Build" {
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
needs = ["Install"]
runs = "yarn"
args = "build"
runs = "yarn"
args = "build"
}

action "Typings" {
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
uses = "actions/npm@3c8332795d5443adc712d30fa147db61fd520b5a"
needs = ["Install"]
runs = "yarn"
args = "typings"
runs = "yarn"
args = "typings"
}

0 comments on commit 99e3489

Please sign in to comment.