mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 13:50:33 +00:00
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:
parent
aa29dc037d
commit
7a80676ac1
1 changed files with 4 additions and 1 deletions
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
|
@ -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: ./
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue