Skip to content

Implement #1259 - Improve build script adding support for Linux and Mac #20

Implement #1259 - Improve build script adding support for Linux and Mac

Implement #1259 - Improve build script adding support for Linux and Mac #20

Workflow file for this run

name: Pode CI - pwsh 7.5 on windows-latest
on:
push:
branches:
- '*'
- '!gh-pages'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install Invoke-Build
shell: pwsh
run: |
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force
# For Windows
- name: Download and extract PowerShell 7.5
run: |
Invoke-WebRequest -Uri "https://github.com/PowerShell/PowerShell/releases/download/v7.5.0-preview.2/PowerShell-7.5.0-preview.2-win-x64.zip" -OutFile "PowerShell-7.5.x-win-x64.zip"
Expand-Archive -LiteralPath "PowerShell-7.5.x-win-x64.zip" -DestinationPath "C:\PowerShell-7.5"
- name: Check PowerShell version
run: |
C:\PowerShell-7.5\pwsh.exe -version
- name: Run Pester Tests
run: |
C:\PowerShell-7.5\pwsh.exe -Command {
Invoke-Build Test
}
- name: Test docker builds
run: |
C:\PowerShell-7.5\pwsh.exe -Command {
Invoke-Build DockerPack -Version '0.0.0'
}