mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 13:50:33 +00:00
fix: clear MISE_ENV between tests to prevent persistence
MISE_ENV exported to GITHUB_ENV in the first test was persisting to subsequent tests. Added explicit clearing step before Test 2 to ensure the precedence test works correctly.
This commit is contained in:
parent
05a978cac3
commit
aa29dc037d
1 changed files with 5 additions and 2 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
|
@ -181,6 +181,11 @@ jobs:
|
|||
echo "✓ Environment variables loaded correctly"
|
||||
|
||||
# Test 2: MISE_ENV environment variable takes precedence
|
||||
# Clear MISE_ENV first since it persists from previous test
|
||||
- name: Clear MISE_ENV from previous test
|
||||
run: |
|
||||
echo "MISE_ENV=production" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup mise with both env var and input
|
||||
uses: ./
|
||||
with:
|
||||
|
|
@ -191,8 +196,6 @@ jobs:
|
|||
|
||||
[env]
|
||||
PROD_VAR = "production-value"
|
||||
env:
|
||||
MISE_ENV: production
|
||||
|
||||
- name: Verify existing MISE_ENV takes precedence
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue