Skip to content

Commit

Permalink
Merge pull request #1318 from Badgerati/develop
Browse files Browse the repository at this point in the history
v2.10.1
  • Loading branch information
Badgerati authored May 27, 2024
2 parents 241b7ca + 471fe76 commit 71dc7ba
Show file tree
Hide file tree
Showing 70 changed files with 2,707 additions and 1,658 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
18 changes: 16 additions & 2 deletions .github/workflows/PSScriptAnalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,23 @@ name: PSScriptAnalyzer

on:
push:
branches: [ "develop" ]
branches:
- 'develop'
paths:
- 'src/**.ps1'
- 'src/*.psm1'
- 'src/*.psd1'
- 'PSScriptAnalyzerSettings.psd1'
- '.github/workflows/PSScriptAnalyzer.yml'
pull_request:
branches: [ "develop" ]
branches:
- 'develop'
paths:
- 'src/**.ps1'
- 'src/*.psm1'
- 'src/*.psd1'
- 'PSScriptAnalyzerSettings.psd1'
- '.github/workflows/PSScriptAnalyzer.yml'
schedule:
- cron: '20 16 * * 6'

Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/ci-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,25 @@ on:
branches:
- 'master'
- 'develop'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-coverage.yml'
pull_request:
branches:
- '*'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-coverage.yml'

env:
INVOKE_BUILD_VERSION: '5.11.1'

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand All @@ -30,7 +42,7 @@ jobs:
- name: Install Invoke-Build
shell: pwsh
run: |
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
- name: Run Pester Tests
shell: pwsh
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Pode CI - Docs

on:
push:
branches:
- '*'
- '!gh-pages'
paths:
- 'mkdocs.yml'
- 'mkdocs-overrides/**'
- 'docs/**'
- '.github/workflows/ci-docs.yml'
- 'pode.build.ps1'
- 'src/Pode.psd1'
pull_request:
branches:
- '*'
paths:
- 'mkdocs.yml'
- 'mkdocs-overrides/**'
- 'docs/**'
- '.github/workflows/ci-docs.yml'
- 'pode.build.ps1'
- 'src/Pode.psd1'

env:
INVOKE_BUILD_VERSION: '5.11.1'

jobs:
build:
runs-on: windows-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Install Invoke-Build
shell: pwsh
run: |
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
- name: Build Documentation
shell: pwsh
run: |
Invoke-Build DocsBuild
53 changes: 53 additions & 0 deletions .github/workflows/ci-no-build-needed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Pode CI - No Build Needed

on:
push:
branches:
- '*'
- '!gh-pages'
paths-ignore:
- 'mkdocs.yml'
- 'mkdocs-overrides/**'
- 'docs/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/ci-docs.yml'
- '.github/workflows/ci-pwsh*.yml'
- '.github/workflows/ci-powershell.yml'
- '.github/workflows/ci-coverage.yml'
- '.github/workflows/PSScriptAnalyzer.yml'
- 'pode.build.ps1'
- 'Dockerfile'
- '*.dockerfile'
- 'PSScriptAnalyzerSettings.psd1'
pull_request:
branches:
- '*'
paths-ignore:
- 'mkdocs.yml'
- 'mkdocs-overrides/**'
- 'docs/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/ci-docs.yml'
- '.github/workflows/ci-pwsh*.yml'
- '.github/workflows/ci-powershell.yml'
- '.github/workflows/ci-coverage.yml'
- '.github/workflows/PSScriptAnalyzer.yml'
- 'pode.build.ps1'
- 'Dockerfile'
- '*.dockerfile'
- 'PSScriptAnalyzerSettings.psd1'

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false

steps:
- name: Install Invoke-Build
shell: pwsh
run: |
Write-Host "No build needed for this commit"
24 changes: 21 additions & 3 deletions .github/workflows/ci-powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,25 @@ on:
branches:
- '*'
- '!gh-pages'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-powershell.yml'
pull_request:
branches:
- '*'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-powershell.yml'

env:
INVOKE_BUILD_VERSION: '5.11.1'

jobs:
build:

runs-on: windows-latest

strategy:
Expand All @@ -34,10 +46,16 @@ jobs:
shell: powershell
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module -Name InvokeBuild -RequiredVersion '5.10.5' -Force
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
- name: Run Pester Tests
shell: powershell
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Build Test
Invoke-Build Test
- name: Build Packages
shell: powershell
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Build Pack
54 changes: 40 additions & 14 deletions .github/workflows/ci-pwsh7_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,30 @@ on:
branches:
- '*'
- '!gh-pages'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-pwsh7_2.yml'
- 'Dockerfile'
- '*.dockerfile'
pull_request:
branches:
- '*'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-pwsh7_2.yml'
- 'Dockerfile'
- '*.dockerfile'

env:
INVOKE_BUILD_VERSION: '5.11.1'
POWERSHELL_VERSION: '7.2.19'

jobs:
build:

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

strategy:
Expand All @@ -22,32 +39,41 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Powershell
uses: bjompen/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
FixedVersion: '7.2.18'
dotnet-version: 8.0.x

- name: Check PowerShell version
- name: Setup Powershell - Unix
shell: pwsh
if: runner.os == 'Linux' || runner.os == 'macOS'
run: |
$PSVersionTable.PSVersion
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- 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 '5.10.5' -Force
run: |
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
- name: Run Pester Tests
shell: pwsh
run: |
Invoke-Build Test
- name: Test docker builds
- name: Build Packages
shell: pwsh
run: |
Invoke-Build DockerPack -Version '0.0.0'
Invoke-Build Pack
53 changes: 0 additions & 53 deletions .github/workflows/ci-pwsh7_3.yml

This file was deleted.

Loading

0 comments on commit 71dc7ba

Please sign in to comment.