Skip to content

Commit

Permalink
fix: use Powershell in windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoaldamav committed Jan 17, 2024
1 parent 39e0f1f commit 4f23bf6
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 and Bit Install
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
echo "$env:PATH=$HOME/bin;$env:PATH" | Out-String | Invoke-Expression
else
export PATH=$HOME/bin:$PATH
fi
bit install
- name: Set PATH and Bit Test
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
echo "$env:PATH=$HOME/bin;$env:PATH" | Out-String | Invoke-Expression
else
export PATH=$HOME/bin:$PATH
fi
bit test

0 comments on commit 4f23bf6

Please sign in to comment.