Skip to content

Commit

Permalink
fix: use Powershell in windows CI (#16)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nachoaldamav committed Jan 18, 2024
1 parent 39e0f1f commit 10237b0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 10237b0

Please sign in to comment.