-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate/lint: support
tag
input (#259)
- Loading branch information
Showing
4 changed files
with
42 additions
and
3 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
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,23 @@ | ||
# Mock the atlas command outputs | ||
mock-atlas $WORK/migrate-lint | ||
# Setup the action input variables | ||
env INPUT_CONFIG=file://testdata/config/atlas.hcl | ||
env INPUT_ENV=test | ||
env INPUT_DIR-NAME=pupisu | ||
env INPUT_TAG=staging | ||
env INPUT_VARS='{"var1":"value1","var2":"value2"}' | ||
env INPUT_DIR=file://testdata/migrations | ||
env INPUT_DEV_URL=sqlite://file?mode=memory | ||
env INPUT_RUN=example | ||
|
||
atlas-action migrate/lint | ||
output output.txt | ||
|
||
-- migrate-lint/1/args -- | ||
migrate lint -w --context {"path":"file://testdata/migrations","scmType":"GITHUB"} --env test --config file://testdata/config/atlas.hcl --dir file://testdata/migrations --base atlas://pupisu?tag=staging --var var1=value1 --var var2=value2 --format {{ json . }} | ||
-- migrate-lint/1/stdout -- | ||
{"URL":"https://migration-lint-report-url"} | ||
-- output.txt -- | ||
report-url<<_GitHubActionsFileCommandDelimeter_ | ||
https://migration-lint-report-url | ||
_GitHubActionsFileCommandDelimeter_ |
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