Skip to content

Commit

Permalink
Merge pull request #1452 from mdaneri/support-net9-and-future-releases
Browse files Browse the repository at this point in the history
Bumps .NET version to .NET9; Adds PS7.5 workflow; Bumps InvokeBuild to v5.12.0; Bumps MkDocs to v1.6.1; Bumps MkDocs Material Theme to v9.5.44
  • Loading branch information
Badgerati authored Nov 23, 2024
2 parents 508c2da + 64536e3 commit e7435c4
Show file tree
Hide file tree
Showing 11 changed files with 952 additions and 104 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/VirusTotal-Releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check VIRUSTOTAL_API_KEY
env:
VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}
run: |
if [ -z "$VIRUSTOTAL_API_KEY" ]; then
echo "VIRUSTOTAL_API_KEY is not set. Exiting workflow."
exit 1
fi
echo "VIRUSTOTAL_API_KEY is set. Proceeding with the workflow.
- name: Run VirusTotal Scan
uses: crazy-max/ghaction-virustotal@v4
with:
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/VirusTotal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,25 @@ on:
- cron: '0 12 * * *'

env:
INVOKE_BUILD_VERSION: '5.11.1'
INVOKE_BUILD_VERSION: '5.12.0'
POWERSHELL_VERSION: 'lts'

jobs:
build:
runs-on: ubuntu-latest

steps:


- name: Check VIRUSTOTAL_API_KEY
env:
VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}
run: |
if [ -z "$VIRUSTOTAL_API_KEY" ]; then
echo "VIRUSTOTAL_API_KEY is not set. Exiting workflow."
exit 1
fi
echo "VIRUSTOTAL_API_KEY is set. Proceeding with the workflow.
- uses: actions/checkout@v4

- name: Setup .NET
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
- '.github/workflows/ci-coverage.yml'

env:
INVOKE_BUILD_VERSION: '5.11.1'
INVOKE_BUILD_VERSION: '5.12.0'

jobs:
build:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.x

- name: Install Invoke-Build
shell: pwsh
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- 'src/Pode.psd1'

env:
INVOKE_BUILD_VERSION: '5.11.1'
INVOKE_BUILD_VERSION: '5.12.0'

jobs:
build:
Expand All @@ -36,6 +36,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x

- name: Install Invoke-Build
shell: pwsh
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
- '.github/workflows/ci-powershell.yml'

env:
INVOKE_BUILD_VERSION: '5.11.1'
INVOKE_BUILD_VERSION: '5.12.0'

jobs:
build:
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.x

- name: Install Invoke-Build
shell: powershell
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-pwsh7_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- '*.dockerfile'

env:
INVOKE_BUILD_VERSION: '5.11.1'
INVOKE_BUILD_VERSION: '5.12.0'
POWERSHELL_VERSION: '7.2.24'

jobs:
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.x

- name: Setup Powershell - Unix
shell: pwsh
Expand Down
80 changes: 80 additions & 0 deletions .github/workflows/ci-pwsh7_5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Pode CI - pwsh 7.5

on:
push:
branches:
- '*'
- '!gh-pages'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-pwsh7_5.yml'
- 'Dockerfile'
- '*.dockerfile'
pull_request:
branches:
- '*'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-pwsh7_5.yml'
- 'Dockerfile'
- '*.dockerfile'

env:
INVOKE_BUILD_VERSION: '5.12.0'
POWERSHELL_VERSION: '7.5.0-rc.1'


jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x

- name: Setup Powershell - Unix
shell: pwsh
if: runner.os == 'Linux' || runner.os == 'macOS'
run: |
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
- name: Setup Powershell - Windows
shell: PowerShell
if: runner.os == 'Windows'
run: |
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
- name: Output PowerShell version
shell: pwsh
run: |
$PSVersionTable.PSVersion
- name: Install Invoke-Build
shell: pwsh
run: |
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
- name: Run Pester Tests
shell: pwsh
run: |
Invoke-Build Test
- name: Build Packages
shell: pwsh
run: |
Invoke-Build Pack
4 changes: 2 additions & 2 deletions .github/workflows/ci-pwsh_lts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- '*.dockerfile'

env:
INVOKE_BUILD_VERSION: '5.11.1'
INVOKE_BUILD_VERSION: '5.12.0'
POWERSHELL_VERSION: 'lts'

jobs:
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.x

- name: Setup Powershell - Unix
shell: pwsh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-pwsh_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- '*.dockerfile'

env:
INVOKE_BUILD_VERSION: '5.11.1'
INVOKE_BUILD_VERSION: '5.12.0'
POWERSHELL_VERSION: 'Preview'

jobs:
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.x

- name: Setup Powershell - Unix
shell: pwsh
Expand Down
Loading

0 comments on commit e7435c4

Please sign in to comment.