Skip to content

Commit

Permalink
Update test for NODE_OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Potter committed Nov 20, 2023
1 parent 8b97e62 commit 988cf3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Test file for actions/load-env
PROJECT_NAME=octane-actions

NODE_OPTIONS="test"
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,20 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3
- name: Load environment
id: set_env
uses: phase2/octane-actions/actions/load-env@develop
- name: Environment vars
run: env
- name: Validate results
env:
NODE_OPTIONS: ${{steps.set_env.outputs.node_options}}
run: |
result=0
echo "NODE_OPTIONS: $NODE_OPTIONS"
if [ "$NODE_OPTIONS" != "test" ]; then
echo "ERROR handling NODE_OPTIONS in .env file"
result=1
fi
echo "PROJECT_NAME: $PROJECT_NAME"
if [ "$PROJECT_NAME" != "octane-actions" ]; then
echo "ERROR loading .env file"
Expand Down

0 comments on commit 988cf3e

Please sign in to comment.