Skip to content

Create dependabot.yml #82

Create dependabot.yml

Create dependabot.yml #82

Workflow file for this run

name: Pester
on: [push, pull_request]
jobs:
# test-pwsh:
# strategy:
# matrix:
# platform: [ubuntu-latest, macos-latest, windows-latest]
# runs-on: ${{ matrix.platform }}
# steps:
# - uses: actions/checkout@v2
# - name: Run Pester tests (pwsh)
# run: |
# Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor
# Install-Module -Name Pester -RequiredVersion 5.2.2 -Confirm:$false -Force
# Set-Location -Path .\Tests\
# Invoke-Pester
# if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1}
# shell: pwsh
test-posh:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Run Pester tests (PowerShell)
run: |
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor
Install-Module -Name Pester -RequiredVersion 5.3.1 -Confirm:$false -Force
$pesterConfig = New-PesterConfiguration
$pesterConfig.CodeCoverage.Enabled = $true
Set-Location -Path .\Tests\
Invoke-Pester -Configuration $pesterConfig
if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1}
shell: powershell