diff --git a/ci/powershell.yml b/ci/powershell.yml new file mode 100644 index 0000000000..57234192b3 --- /dev/null +++ b/ci/powershell.yml @@ -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 \ No newline at end of file diff --git a/ci/properties/powershell.properties.json b/ci/properties/powershell.properties.json new file mode 100644 index 0000000000..cab724e181 --- /dev/null +++ b/ci/properties/powershell.properties.json @@ -0,0 +1,6 @@ +{ + "name": "PowerShell", + "description": "Test PowerShell commands on multiple OS platforms.", + "iconName": "powershell", + "categories": ["PowerShell"] +} \ No newline at end of file diff --git a/icons/powershell.svg b/icons/powershell.svg new file mode 100644 index 0000000000..6bdd79bb78 --- /dev/null +++ b/icons/powershell.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +