-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI-140: integration tests on ci #263
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
eda57a2
chore: initial try at workflow change
as-herzog c057136
chore: add env vars
as-herzog 0b33221
chore: remove path
as-herzog a8b99b8
chore: add mocks
as-herzog 5b04287
chore: try build before integration
as-herzog 5267a1d
chore: revert
as-herzog 5452a69
chore: build all platforms
as-herzog 6ce685e
test: fix
as-herzog 46c0731
test: run with verbose
as-herzog 8d9d409
Merge branch 'main' into cli-140-integration-on-ci
as-herzog 16384bd
test: skipped
as-herzog 54b319c
Merge branch 'main' into cli-140-integration-on-ci
Widcket 7736d2d
test: remove verbose
as-herzog e6b3aa2
chore: Merge branch 'cli-140-integration-on-ci' of github.com:auth0/a…
as-herzog 946d02a
test: echo path
as-herzog ca0c543
test: add verbose flag back
as-herzog c2e8fbb
test: build before integration
as-herzog 4ca5642
test: try bash
as-herzog 977317d
test: switch order
as-herzog 1e4a362
test: remove redundant build
as-herzog 2dcb9f2
test: add to path
as-herzog 1621e67
Merge branch 'main' into cli-140-integration-on-ci
as-herzog 70a768b
fix: config generator include scopes
jfatta 5e0632e
Merge branch 'main' into cli-140-integration-on-ci
jfatta 46b13a0
fix makefile
jfatta 74697e1
fix: config gen tenant name
jfatta 268c5a9
fix: config generated token
jfatta 0c5e51b
test: remove verbose
as-herzog b76d343
test: failure
as-herzog a650818
fix: revert fialure
as-herzog cac083a
test: cleanup even with failure
as-herzog f2f54ba
test: use bash
as-herzog c2400f1
test: cleanup
as-herzog c55da52
fix: test
as-herzog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,11 +38,7 @@ lint: | |
|
||
# Build for the native platform | ||
build: | ||
go build -ldflags "$(CTIMEVAR)" -o auth0 cmd/auth0/main.go | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch. bad resolved merge conflict I guess 🤦🏼 |
||
.PHONY: build | ||
|
||
# Build for the native platform | ||
build: | ||
go build -ldflags "$(CTIMEVAR)" -o $(GOBIN)/auth0 cmd/auth0/main.go | ||
.PHONY: build | ||
|
||
# Build a beta version of auth0-cli for all supported platforms | ||
|
@@ -78,5 +74,9 @@ integration-cleanup: | |
./integration/test-cleanup.sh | ||
.PHONY: integration-cleanup | ||
|
||
integration: $(GOBIN)/auth0-cli-config-generator $(GOBIN)/commander run-integration integration-cleanup | ||
integration: build $(GOBIN)/auth0-cli-config-generator $(GOBIN)/commander | ||
$(MAKE) run-integration; \ | ||
ret=$$?; \ | ||
$(MAKE) integration-cleanup; \ | ||
exit $$ret | ||
.PHONY: integration |
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we need
AUTH0_CLI_REUSE_CONFIG
on the secrets. It should be always false on CI if understood the code correctly; there's no config file to reuse here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if we tweak the CLI codebase to look for all those ENV vars and skip the config file completely if the vars are present?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm, we don't want to support client id/secret auth mechanism on the code base. In any case, it could look for an ENV var with the access token and skip config file, but that has nothing to do with this PR.