fix: clear MISE_ENV before each test to prevent cross-test pollution

GITHUB_ENV persists across all steps in a job. Each test now explicitly
sets MISE_ENV before running to ensure isolation between tests.
This commit is contained in:
Jorge Rodriguez 2026-04-21 10:11:32 +02:00
parent aa29dc037d
commit 7a80676ac1
No known key found for this signature in database
GPG key ID: A22D46F0D97D588A

View file

@ -214,6 +214,9 @@ jobs:
echo "✓ Environment variables loaded correctly"
# Test 3: Cache key includes environment
- name: Clear MISE_ENV for cache test
run: echo "MISE_ENV=test-env" >> $GITHUB_ENV
- name: Setup mise with environment (cache test)
uses: ./
with:
@ -233,7 +236,7 @@ jobs:
# Test 4: Respect env=false input
- name: Clear MISE_ENV for next test
run: echo "MISE_ENV=" >> $GITHUB_ENV
run: echo "MISE_ENV=no-export" >> $GITHUB_ENV
- name: Setup mise with env=false
uses: ./