-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/e2e: join into the root Go module
The only reason we split up the e2e tests into their own module, as described in https://cuelang.org/cl/1171435, was because they depended on the go-github Go library, and we didn't want to add it as a requirement to the root module. After https://cuelang.org/cl/1178251, go-github is no longer required, so we can join the modules and avoid the pain caused by needing to remember to run `go mod tidy` in internal/e2e as well. Note that we rename the directory to internal/_e2e so that `go test ./...` continues skipping over the package entirely, as the end-to-end tests require secrets to function. Not just $CUE_LOGINS for the tests against registry.cue.works, but also `gcloud` to be authorized with the artifact repository we use. Rather than have the tests silently skip themselves if the secrets aren't properly set up, causing issues in CI if we don't notice, leave the tests to fail when the necessary secrets aren't set up, and allow explicitly runnint the e2e tests via: cd internal/_e2e export CUE_LOGINS={...} go test The CI setup is also simplified slightly, as we go back to only needing to worry about running tool checks on a single Go module. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I400280822b06d6fad9e2bfae5c2560083182ae80 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1178256 Reviewed-by: Paul Jolly <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
11 changed files
with
7 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.