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
2022-12-15 10:51:11 +02:00
committed by GitHub
parent edb86d4bf3
commit f73cdc5e80
21 changed files with 210 additions and 211 deletions

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")