Skip to content

Commit 4250ddb

Browse files
authored
Merge pull request #1649 from Badgerati/test-speed
Refactor Pester tests to improve CI performance
2 parents d5e5386 + a4e84e7 commit 4250ddb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+14154
-14153
lines changed

.github/workflows/VirusTotal.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
- name: Setup Powershell
4848
shell: pwsh
4949
run: |
50-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
50+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5151
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
5252
5353
- name: Install Invoke-Build
5454
shell: pwsh
5555
run: |
56-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
56+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5757
5858
- name: Build Zip Package
5959
shell: pwsh

.github/workflows/ci-coverage.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/ci-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install Invoke-Build
4545
shell: pwsh
4646
run: |
47-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
47+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
4848
4949
- name: Build Documentation
5050
shell: pwsh

.github/workflows/ci-powershell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
shell: powershell
4747
run: |
4848
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
49-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
49+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5050
5151
- name: Run Pester Tests
5252
shell: powershell

.github/workflows/ci-pwsh7_5.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ jobs:
4848
shell: pwsh
4949
if: runner.os == 'Linux' || runner.os == 'macOS'
5050
run: |
51-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
51+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5252
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
5353
5454
- name: Setup Powershell - Windows
5555
shell: PowerShell
5656
if: runner.os == 'Windows'
5757
run: |
58-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
58+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5959
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
6060
6161
- name: Output PowerShell version
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install Invoke-Build
6767
shell: pwsh
6868
run: |
69-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
69+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
7070
7171
- name: Run Pester Tests
7272
shell: pwsh

.github/workflows/ci-pwsh_lts.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ jobs:
4848
shell: pwsh
4949
if: runner.os == 'Linux' || runner.os == 'macOS'
5050
run: |
51-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
51+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5252
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
5353
5454
- name: Setup Powershell - Windows
5555
shell: PowerShell
5656
if: runner.os == 'Windows'
5757
run: |
58-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
58+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5959
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
6060
6161
- name: Output PowerShell version
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install Invoke-Build
6767
shell: pwsh
6868
run: |
69-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
69+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
7070
7171
- name: Run Pester Tests
7272
shell: pwsh

.github/workflows/ci-pwsh_preview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ jobs:
4848
shell: pwsh
4949
if: runner.os == 'Linux' || runner.os == 'macOS'
5050
run: |
51-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
51+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5252
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
5353
5454
- name: Setup Powershell - Windows
5555
shell: PowerShell
5656
if: runner.os == 'Windows'
5757
run: |
58-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
58+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
5959
Invoke-Build SetupPowerShell -PowerShellVersion $env:POWERSHELL_VERSION
6060
6161
- name: Output PowerShell version
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install Invoke-Build
6767
shell: pwsh
6868
run: |
69-
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
69+
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force -SkipPublisherCheck -AllowClobber -Scope CurrentUser
7070
7171
- name: Run Pester Tests
7272
shell: pwsh

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,18 @@
2424
- [🙌 Contributing](#-contributing)
2525
- [🌎 Roadmap](#-roadmap)
2626

27-
Pode is a Cross-Platform framework for creating web servers to host [REST APIs](https://badgerati.github.io/Pode/Tutorials/Routes/Overview/), [Web Pages](https://badgerati.github.io/Pode/Tutorials/Routes/Examples/WebPages/), and [SMTP/TCP](https://badgerati.github.io/Pode/Servers/) Servers. Pode also allows you to render dynamic files using [`.pode`](https://badgerati.github.io/Pode/Tutorials/Views/Pode/) files, which are just embedded PowerShell, or other [Third-Party](https://badgerati.github.io/Pode/Tutorials/Views/ThirdParty/) template engines. Plus many more features, including [Azure Functions](https://badgerati.github.io/Pode/Hosting/AzureFunctions/) and [AWS Lambda](https://badgerati.github.io/Pode/Hosting/AwsLambda/) support!
27+
Pode is a Cross-Platform PowerShell framework for creating web servers to host [REST APIs](https://badgerati.github.io/Pode/Tutorials/Routes/Overview/), [Web Pages](https://badgerati.github.io/Pode/Tutorials/Routes/Examples/WebPages/), and [SMTP/TCP](https://badgerati.github.io/Pode/Servers/) Servers. Pode also allows you to render dynamic files using [`.pode`](https://badgerati.github.io/Pode/Tutorials/Views/Pode/) files, which are just embedded PowerShell, or other [Third-Party](https://badgerati.github.io/Pode/Tutorials/Views/ThirdParty/) template engines. Plus many more features, including [Azure Functions](https://badgerati.github.io/Pode/Hosting/AzureFunctions/) and [AWS Lambda](https://badgerati.github.io/Pode/Hosting/AwsLambda/) support!
2828

2929
```powershell
30-
3130
Start-PodeServer -ScriptBlock {
3231
Add-PodeEndPoint -Address localhost -port 32005 -Protocol Http
32+
3333
Add-PodeRoute -Method Get -Path '/ping' -ScriptBlock {
3434
Write-PodeJsonResponse -Value @{value = 'pong' }
3535
}
3636
}
3737
38+
# then call "http://127.0.0.1:32005/ping"
3839
```
3940

4041
See [here](https://badgerati.github.io/Pode/Getting-Started/FirstApp) for building your first app! Don't know HTML, CSS, or JavaScript? No problem! [Pode.Web](https://github.com/Badgerati/Pode.Web) is currently a work in progress, and lets you build web pages using purely PowerShell!
@@ -82,7 +83,7 @@ Then navigate to `http://127.0.0.1:8000` in your browser.
8283
* In-memory caching, with optional support for external providers (such as Redis)
8384
* (Windows) Open the hosted server as a desktop application
8485
* FileBrowsing support
85-
* Localization (i18n) in Arabic, German, Spanish, France, Italian, Japanese, Korean, Polish, Portuguese, and Chinese
86+
* Localization (i18n) in Arabic, German, Spanish, France, Italian, Japanese, Polish, Chinese, and more
8687

8788
## 📦 Install
8889

docs/Getting-Started/CLI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# CLI
22

3-
Pode has some commands that you can utilise from a PowerShell terminal, or `pwsh` session. These commands help you to initialise, start, test, build, or install any packages for your repo/server.
3+
Pode has some inbuilt commands that you can utilise from the PowerShell CLI. These commands help you to initialise, start, test, build, or install any packages for your repo/server.
44

5-
All of these commands are centered around the `package.json` format - similar to that of Node.js and Yarn.
5+
All of these commands are centred around the `package.json` format - similar to that of Node.js and Yarn.
66

77
!!! info
88
At the moment, Pode only uses the `start`, `test`, `build` and `install` properties of the `scripts` section in your `package.json`. You can still have others, like `dependencies` for Yarn
@@ -26,7 +26,7 @@ pode init
2626
```
2727

2828
!!! tip
29-
By default, Pode will pre-populate the `test`, `build` and `install` values using `yarn`, `psake` and `pester` respectively
29+
By default, Pode will pre-populate the `test`, `build` and `install` values using `yarn`, `psake` and `pester` respectively
3030

3131
### Install
3232

0 commit comments

Comments
 (0)