Skip to content

Commit

Permalink
chore: run install.ps1 on both powershell and pwsh
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenhilton committed May 25, 2024
1 parent 24a990d commit 8f72b73
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,29 @@ jobs:
BINARY: ${{ matrix.os == 'windows-2022' && 'bin/chezmoi.exe' || 'bin/chezmoi' }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- name: test-${{ matrix.os }}-local
- name: test-${{ matrix.os }}-local-pwsh
shell: pwsh
run: |
if (Test-Path -Path ${{ env.BINARY }}) { Remove-Item -Force ${{ env.BINARY }} }
assets/scripts/install.ps1 -d
${{ env.BINARY }} --version
- name: test-${{ matrix.os }}-url
- name: test-${{ matrix.os }}-local-powershell
if: matrix.os == 'windows-2022'
shell: powershell
run: |
if (Test-Path -Path ${{ env.BINARY }}) { Remove-Item -Force ${{ env.BINARY }} }
assets/scripts/install.ps1 -d
${{ env.BINARY }} --version
- name: test-${{ matrix.os }}-url-pwsh
shell: pwsh
run: |
if (Test-Path -Path ${{ env.BINARY }}) { Remove-Item -Force ${{ env.BINARY }} }
iex "&{$(irm 'https://raw.githubusercontent.com/twpayne/chezmoi/${{ env.SHA }}/assets/scripts/install.ps1')} -d"
${{ env.BINARY }} --version
- name: test-${{ matrix.os }}-url-powershell
if: matrix.os == 'windows-2022'
shell: powershell
run: |
if (Test-Path -Path ${{ env.BINARY }}) { Remove-Item -Force ${{ env.BINARY }} }
iex "&{$(irm 'https://raw.githubusercontent.com/twpayne/chezmoi/${{ env.SHA }}/assets/scripts/install.ps1')} -d"
${{ env.BINARY }} --version

1 comment on commit 8f72b73

@Mihail1607
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Please sign in to comment.