Support setting shell via defaults.run (#343)

Note that we don't support the more general use of defaults, just its
run key for setting shell and working directory.

The documentation for defaults.run is here:
  https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#defaultsrun

Fixes #214.

Co-authored-by: Casey Lee <[email protected]>
This commit is contained in:
Julian SquiresandCasey Lee authored and GitHub committed 2020-08-28 11:52:25 -07:00
1 parent b3b8961122
commit e698e8b324
4 files changed
+60 -4

No files matched your search

+1
View File
@@ -55,6 +55,7 @@ func TestRunEvent(t *testing.T) {
{"commands", "push", ""},
{"workdir", "push", ""},
{"issue-228", "push", ""}, // TODO [igni]: Remove this once everything passes
{"defaults-run", "push", ""},
}
log.SetLevel(log.DebugLevel)