From aa29dc037d0ebeb4e7647ffee04ae65ad7a98d71 Mon Sep 17 00:00:00 2001 From: Jorge Rodriguez Date: Tue, 21 Apr 2026 10:09:30 +0200 Subject: [PATCH] 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. --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 223f275..f3de75d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: |