Skip to content

Release v0.1.3: gwta auto-path, worktree branch completion, docs #16

Release v0.1.3: gwta auto-path, worktree branch completion, docs

Release v0.1.3: gwta auto-path, worktree branch completion, docs #16

Workflow file for this run

name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
windows:
name: ${{ matrix.name }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- name: Windows PowerShell 5.1
ps_exe: powershell
- name: PowerShell 7
ps_exe: pwsh
steps:
- uses: actions/checkout@v4
- name: Show PowerShell Version
shell: pwsh
run: |
$exe = '${{ matrix.ps_exe }}'
& $exe -NoProfile -Command '$PSVersionTable | Format-List'
- name: Install Dependencies
shell: pwsh
run: |
$exe = '${{ matrix.ps_exe }}'
$installScript = @'
if (-not (Get-PackageProvider -Name NuGet -ErrorAction SilentlyContinue)) {
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Scope CurrentUser -Force
}
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module PSScriptAnalyzer -Scope CurrentUser -RequiredVersion 1.22.0 -Force
Install-Module Pester -Scope CurrentUser -RequiredVersion 5.7.1 -Force
Install-Module posh-git -Scope CurrentUser -Force
Install-Module git-aliases -Scope CurrentUser -Force
'@
& $exe -NoProfile -Command $installScript
- name: Run Lint and Tests
shell: pwsh
run: |
$exe = '${{ matrix.ps_exe }}'
& $exe -NoProfile -File .\tools\ci.ps1 -CurrentShellOnly