Support running tests in forked repository workflow #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes the GITHUB_TOKEN environmental variable to GITPROVIDER_BOT_TOKEN
because github secrets cannot start with GITHUB_
Add an option to cleanup all test repos, the integration tests sometimes
fail to cleanup.
Signed-off-by: Paul Carlton [email protected]
Description
Changes the GITHUB_TOKEN environmental variable to GITPROVIDER_BOT_TOKEN
because github secrets cannot start with GITHUB_
Add an option to cleanup all test repos, the integration tests sometimes
fail to cleanup.
Test results
go mod tidy
go fmt ./...
go vet ./...
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
? github.com/fluxcd/go-git-providers/bitbucket [no test files]
ok github.com/fluxcd/go-git-providers/github 13.859s coverage: 50.8% of statements
ok github.com/fluxcd/go-git-providers/gitlab 40.272s coverage: 73.9% of statements
ok github.com/fluxcd/go-git-providers/gitprovider 0.141s coverage: 94.5% of statements
? github.com/fluxcd/go-git-providers/gitprovider/cache [no test files]
? github.com/fluxcd/go-git-providers/gitprovider/testutils [no test files]
ok github.com/fluxcd/go-git-providers/validation 0.058s coverage: 100.0% of statements