Metadata: Move and rename genversions.go and genversions_test.go (#60315)

* Move and rename genversions.go and tests

* Fix lint - bring back cli.Exit

* Move package.json and fix tests

* Add necessary env vars for promote event
This commit is contained in:
Dimitris Sotirakis authored and GitHub committed 2022-12-15 03:51:11 -05:00
1 parent edb86d4bf3
commit f73cdc5e80
21 files changed
+210 -211

No files matched your search

+2
View File
@@ -32,6 +32,8 @@ func mockGithubRepositoryClient(context.Context, string) githubRepositoryService
func TestPublishGithub(t *testing.T) {
t.Setenv("DRONE_BUILD_EVENT", "promote")
t.Setenv("DRONE_TAG", "v1.0.0")
t.Setenv("DRONE_COMMIT", "abcdefgh")
testApp, testPath := setupPublishGithubTests(t)
mockErrUnauthorized := errors.New("401")