Skip to content

Commit

Permalink
Add terraform-test action
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Jun 1, 2024
1 parent dbb186b commit b09c4b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: ./terraform-test
with:
path: tests/workflows/test-test/local
filter: main.tftest.hcl
test_filter: main.tftest.hcl

test_dir:
runs-on: ubuntu-latest
Expand All @@ -41,7 +41,7 @@ jobs:
with:
path: tests/workflows/test-test/local
test_path: custom-test-dir
filter: |
test_filter: |
another.tftest.hcl
a-third.tftest.hcl
Expand All @@ -58,7 +58,7 @@ jobs:
continue-on-error: true
with:
path: tests/workflows/test-test/local
filter: main.tftest.hcl
test_filter: main.tftest.hcl
variables: |
length = 1
Expand Down
2 changes: 1 addition & 1 deletion image/entrypoints/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ init-test
function set-test-args() {
TEST_ARGS=""

if [[ -n "$INPUT_CLOUD_RUN" ]]; then
if [[ -v INPUT_CLOUD_RUN && -n "$INPUT_CLOUD_RUN" ]]; then
# I have no idea what this does, it is not well documented.
TEST_ARGS="$TEST_ARGS -cloud-run=$INPUT_CLOUD_RUN"
fi
Expand Down

0 comments on commit b09c4b9

Please sign in to comment.