Skip to content

Commit 6aef285

Browse files
committed
Ugh, try writing modifications to GITHUB_ENV
1 parent 7e857c6 commit 6aef285

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636

3737
runs-on: ${{ matrix.os }}
3838

39-
env:
40-
PATH: /home/runner/vim-${{ matrix.vim.version }}/bin:${{ env.PATH }}
41-
4239
steps:
4340
- uses: actions/checkout@v2
4441
with:
@@ -72,6 +69,11 @@ jobs:
7269
git clone https://github.com/junegunn/vader.vim.git
7370
popd
7471
72+
- uses: Pre-pend custom Vim install location to `PATH` environment variable
73+
if: steps.cache-test-dependencies.outputs.cache-hit == 'true'
74+
run: |
75+
echo "$HOME/vim-${{ matrix.vim.version }}/bin:${{ env.PATH }}" >> $GITHUB_ENV
76+
7577
- name: Test units
7678
run: |
7779
scripts/vader-run-tests.sh --test units --cicd > /dev/null
@@ -87,3 +89,4 @@ jobs:
8789
# - https://github.com/junegunn/vader.vim/?tab=readme-ov-file#github-actions
8890
# - https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
8991
# - https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#matrix-context
92+
# - https://stackoverflow.com/questions/62716758/how-to-extend-environment-variables-in-github-actions-with-existing-ones

0 commit comments

Comments
 (0)