Skip to content

Commit

Permalink
test: update test harness to match github_token default in action def…
Browse files Browse the repository at this point in the history
…inition
  • Loading branch information
codejedi365 committed Oct 1, 2024
1 parent 3e80a40 commit 0b6bb7f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/suite/test_publish_w_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ test_with_tag() {
local test_name="Test with tag"

# Create expectations & set env variables that will be passed in for Docker command
local WITH_VAR_GITHUB_TOKEN="ghp_1x2x3x4x5x6x7x8x9x0x1x2x3x4x5x6x7x8x9x0"
local WITH_VAR_TAG="v1.0.0"
local WITH_VAR_ROOT_OPTIONS="--noop -vv"
local expected_psr_cmd=".*/bin/semantic-release $WITH_VAR_ROOT_OPTIONS publish --tag $WITH_VAR_TAG"
Expand Down
1 change: 0 additions & 1 deletion tests/suite/test_publish_wo_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ test_without_tag() {
local test_name="Test without tag"

# Create expectations & set env variables that will be passed in for Docker command
local WITH_VAR_GITHUB_TOKEN="ghp_1x2x3x4x5x6x7x8x9x0x1x2x3x4x5x6x7x8x9x0"
local WITH_VAR_ROOT_OPTIONS="--noop -vv"
local expected_psr_cmd=".*/bin/semantic-release $WITH_VAR_ROOT_OPTIONS publish"

Expand Down
1 change: 1 addition & 0 deletions tests/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ run_test() {
local test_name="$1"

# Set Defaults based on action.yml
[ -z "$WITH_VAR_GITHUB_TOKEN" ] && local WITH_VAR_GITHUB_TOKEN="ghp_1x2x3x4x5x6x7x8x9x0x1x2x3x4x5x6x7x8x9x0"
[ -z "$WITH_VAR_DIRECTORY" ] && local WITH_VAR_DIRECTORY="."
[ -z "$WITH_VAR_ROOT_OPTIONS" ] && local WITH_VAR_ROOT_OPTIONS="-v"

Expand Down

0 comments on commit 0b6bb7f

Please sign in to comment.