-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gitlab: prefix outputs with action's name (#289)
- Loading branch information
Showing
8 changed files
with
61 additions
and
52 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
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# Mock the atlas command outputs | ||
env ATLAS_PATH=$MOCK_ATLAS TEST_BATCH=./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 | ||
env ATLAS_INPUT_CONFIG=file://testdata/config/atlas.hcl | ||
env ATLAS_INPUT_ENV=test | ||
env ATLAS_INPUT_DIR_NAME=pupisu | ||
env ATLAS_INPUT_TAG=staging | ||
env ATLAS_INPUT_VARS='{"var1":"value1","var2":"value2"}' | ||
env ATLAS_INPUT_DIR=file://testdata/migrations | ||
env ATLAS_INPUT_DEV_URL=sqlite://file?mode=memory | ||
env ATLAS_INPUT_RUN=example | ||
|
||
# The action's output should append the existing outputs | ||
cp output-pre.txt actions/output.txt | ||
cp output-pre.sh actions/output.sh | ||
atlas-action --action=migrate/lint | ||
output output.txt | ||
output output.sh | ||
|
||
-- migrate-lint/1/args -- | ||
migrate lint -w --context {"repo":"atlas-orb","path":"file://testdata/migrations","commit":"1234567890"} --env test --config file://testdata/config/atlas.hcl --dev-url sqlite://file?mode=memory --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-pre.txt -- | ||
-- output-pre.sh -- | ||
export FOO=bar | ||
-- output.txt -- | ||
-- output.sh -- | ||
export FOO=bar | ||
export ATLAS_OUTPUT_MIGRATE_LINT_REPORT_URL="https://migration-lint-report-url" |
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