From 492c8faf31257421c8c98f0dfedc2fb458ca66ff Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Wed, 7 Oct 2020 21:18:17 +0200 Subject: [PATCH 1/5] initial commit --- ci/powershell.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ci/powershell.yml diff --git a/ci/powershell.yml b/ci/powershell.yml new file mode 100644 index 0000000000..3dd3a01584 --- /dev/null +++ b/ci/powershell.yml @@ -0,0 +1,31 @@ +# This workflow will run PowerShell tests on Windows, Linux and macOS + +name: PowerShell module + +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 + - 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 From 22110374560837c3300bc0ab71b26d273ff19632 Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Wed, 7 Oct 2020 21:28:58 +0200 Subject: [PATCH 2/5] update name, add comment --- ci/powershell.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/powershell.yml b/ci/powershell.yml index 3dd3a01584..57234192b3 100644 --- a/ci/powershell.yml +++ b/ci/powershell.yml @@ -1,6 +1,5 @@ # This workflow will run PowerShell tests on Windows, Linux and macOS - -name: PowerShell module +name: PowerShell on: push: @@ -26,6 +25,7 @@ jobs: 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 From 6f2eb1b708c6910546dec74b2d93f8829d07d08b Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Wed, 7 Oct 2020 21:29:11 +0200 Subject: [PATCH 3/5] Create powershell.properties.json --- ci/properties/powershell.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/powershell.properties.json 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 From 007f23400caf4ec7ef32d0d3fa62ddb5f1c3acab Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Wed, 7 Oct 2020 21:39:29 +0200 Subject: [PATCH 4/5] Create powrshell.svg --- icons/powrshell.svg | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 icons/powrshell.svg diff --git a/icons/powrshell.svg b/icons/powrshell.svg new file mode 100644 index 0000000000..6bdd79bb78 --- /dev/null +++ b/icons/powrshell.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From c058aafca6a1cb84f949c31440fc380d31036a37 Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Wed, 7 Oct 2020 21:41:06 +0200 Subject: [PATCH 5/5] add powershell.svg --- icons/{powrshell.svg => powershell.svg} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename icons/{powrshell.svg => powershell.svg} (100%) diff --git a/icons/powrshell.svg b/icons/powershell.svg similarity index 100% rename from icons/powrshell.svg rename to icons/powershell.svg