Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions ci/powershell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will run PowerShell tests on Windows, Linux and macOS
name: PowerShell

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

jobs:
build:
name: Module imports on all platforms
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v1
- name: Perform one Pester test to ensure files or folders are in the current directory
shell: pwsh
run: Get-ChildItem | Should -Not -BeNullOrEmpty
- name: Perform two Pester tests to ensure expected results
shell: pwsh
run: |
Get-ChildItem | Select-Object -ExpandProperty Name -First 1 | Should -Be '.github'
Get-Module Pester -ListAvailable | Measure-Object | Select -ExpandProperty Count | Should -BeGreaterThan 0
# Want to setup more advanced tests with Descriptions, Contexts and more? Use a ps1 script in your respository instead.
- name: Run a script in the tests directory that has advanced Pester testing
shell: pwsh
run: ./tests/pester.ps1
6 changes: 6 additions & 0 deletions ci/properties/powershell.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "PowerShell",
"description": "Test PowerShell commands on multiple OS platforms.",
"iconName": "powershell",
"categories": ["PowerShell"]
}
42 changes: 42 additions & 0 deletions icons/powershell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.