mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
refactor: return more errors, add more tests (#679)
adding more tests returns same message for short SHA format like GitHub Actions refactor error checking add more errors :)
This commit is contained in:
parent
e937e114a5
commit
60bee1fc2f
6 changed files with 101 additions and 59 deletions
|
@ -19,6 +19,9 @@ func TestStepContextExecutor(t *testing.T) {
|
|||
{"testdata", "uses-github-noref", "push", "Expected format {org}/{repo}[/path]@ref", platforms, ""},
|
||||
{"testdata", "uses-github-root", "push", "", platforms, ""},
|
||||
{"testdata", "uses-github-path", "push", "", platforms, ""},
|
||||
{"testdata", "uses-docker-url", "push", "", platforms, ""},
|
||||
{"testdata", "uses-github-full-sha", "push", "", platforms, ""},
|
||||
{"testdata", "uses-github-short-sha", "push", "Unable to resolve action `actions/hello-world-docker-action@b136eb8`, the provided ref `b136eb8` is the shortened version of a commit SHA, which is not supported. Please use the full commit SHA `b136eb8894c5cb1dd5807da824be97ccdf9b5423` instead", platforms, ""},
|
||||
}
|
||||
// These tests are sufficient to only check syntax.
|
||||
ctx := common.WithDryrun(context.Background(), true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue