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:
Jorge Rodriguez 2026-04-21 10:09:30 +02:00
parent 05a978cac3
commit aa29dc037d
No known key found for this signature in database
GPG key ID: A22D46F0D97D588A

View file

@ -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: |