Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
falti committed Aug 7, 2024
1 parent 1a0cd0e commit b1721e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ jobs:
log-variables: true
export-variables: true
- run: |
env
if [ -n "$NODE_OPTIONS" ]; then
echo "NODE_OPTIONS is set but should be removed"
output=$(env 2>&1)
echo "$output"
if echo "$output" | grep -q "Can't store NODE_OPTIONS output parameter using '\$GITHUB_ENV' command."; then
echo "Warning: NODE_OPTIONS was removed by GitHub Actions."
exit 1
else
echo "NODE_OPTIONS removed from environment."
fi

0 comments on commit b1721e7

Please sign in to comment.