From 10237b03a41b37a187dd54e7746a4463a58de317 Mon Sep 17 00:00:00 2001 From: Nacho Aldama Date: Thu, 18 Jan 2024 01:51:30 +0100 Subject: [PATCH] fix: use Powershell in windows CI (#16) * fix: use Powershell in windows CI * revert: change step names * fix: set OS PATH in different steps * fix: set Windows PATH * fix: use Powershell v5.1 * fix: specify bvm path manually * fix: dont modify windows PATH * fix: set BVM path in PATH * fix: set user profile automatically --- .github/workflows/ci.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fc15a0..7e72d95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,19 @@ jobs: cache: 'pnpm' - name: Install Bit run: pnpm dlx @teambit/bvm install - - name: bit install - run: export PATH=$HOME/bin:$PATH && bit install - - name: Test - run: export PATH=$HOME/bin:$PATH && bit test + + - name: Set PATH for Unix + if: runner.os != 'Windows' + run: echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV + + - name: Set PATH for Windows + if: runner.os == 'Windows' + shell: pwsh + run: | + echo "$env:USERPROFILE\AppData\Local\.bvm" | Out-File -FilePath $env:GITHUB_PATH -Append + + - name: Bit Install + run: bit install + + - name: Bit Test + run: bit test