Skip to content

Commit

Permalink
fix: set OS PATH in different steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoaldamav committed Jan 17, 2024
1 parent dd5385f commit 733a54e
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,18 @@ jobs:
cache: 'pnpm'
- name: Install Bit
run: pnpm dlx @teambit/bvm install

- 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'
run: echo "PATH=$env:HOME\bin;$env:PATH" >> $GITHUB_ENV
shell: pwsh

- name: 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
run: bit install

- name: 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
run: bit test

0 comments on commit 733a54e

Please sign in to comment.