-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added flags in sandbox Signed-off-by: Yuvraj <[email protected]> * Set false debug defualt value Signed-off-by: Yuvraj <[email protected]> * Remove debug flag Signed-off-by: Yuvraj <[email protected]> * changes sandbox config name Signed-off-by: Yuvraj <[email protected]> * Added test Signed-off-by: Yuvraj <[email protected]> * Update sandbox logic to not overright user config Signed-off-by: Yuvraj <[email protected]> * Added more unit test for sandbox Signed-off-by: Yuvraj <[email protected]> * more unit test added Signed-off-by: Yuvraj <[email protected]> * fixed unit test Signed-off-by: Yuvraj <[email protected]> * more unit test Signed-off-by: Yuvraj <[email protected]> * more unit test fix Signed-off-by: Yuvraj <[email protected]> * more unit test fix Signed-off-by: Yuvraj <[email protected]> * added more unit test Signed-off-by: Yuvraj <[email protected]> * more changes Signed-off-by: Yuvraj <[email protected]>
- Loading branch information
Showing
9 changed files
with
321 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,17 +12,22 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
fetch-depth: "0" | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} | ||
- name: Run GoReleaser dry run | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: --snapshot --skip-publish --rm-dist | ||
args: --snapshot --skip-publish --rm-dist | ||
- name: Unit Tests | ||
uses: cedrickring/[email protected] | ||
env: | ||
GO111MODULE: "on" | ||
CI_ENV: "true" | ||
with: | ||
args: make install && make test_unit_codecov | ||
- name: Push CodeCov | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
116 changes: 116 additions & 0 deletions
116
flytectl/cmd/config/subcommand/sandbox/config_flags_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package sandbox | ||
|
||
//go:generate pflags Config --default-var DefaultConfig | ||
var ( | ||
DefaultConfig = &Config{} | ||
) | ||
|
||
// Config | ||
type Config struct { | ||
SnacksRepo string `json:"flytesnacks" pflag:", Path of your flytesnacks repository"` | ||
} |
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
Oops, something went wrong.