Skip to content

Commit

Permalink
Add script variables test
Browse files Browse the repository at this point in the history
  • Loading branch information
jetexe committed Jul 17, 2024
1 parent 639b22f commit 24092cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ jobs:
run: echo "$ENV_VAR" > ./test_env_var.txt
post: if grep -q value123 ./test_env_var.txt; then echo "Test passed"; else exit 1; fi

- name: Inline variables
uses: ./
with:
run: |
INLINE_VAR="value123" ; \
echo $INLINE_VAR; \
if [ "$INLINE_VAR" = "value123" ]; then echo "Test passed"; else exit 1; fi
echo "SHARED_VAR=value" >> $GITHUB_ENV
post: |
echo "${{ env.SHARED_VAR }}"
if [ "${{ env.SHARED_VAR }}" = "value" ]; then echo "Test passed"; else exit 1; fi
- name: Multiline with line breaks
uses: ./
with:
Expand Down

0 comments on commit 24092cb

Please sign in to comment.