From 7a80676ac11cde1297c4bbdb7ba58caed001c113 Mon Sep 17 00:00:00 2001 From: Jorge Rodriguez Date: Tue, 21 Apr 2026 10:11:32 +0200 Subject: [PATCH] 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. --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f3de75d..cc54ba0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: ./