We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05bc5f1 commit 0f06217Copy full SHA for 0f06217
HtmxPS.tests.ps1
@@ -13,12 +13,16 @@ describe HtmxPS {
13
14
context 'Start-Htmx and Stop-Htmx' {
15
it "Will start and stop a small htmx server" {
16
- $startedLocalJob = Start-Htmx -Htmx (
17
- htmx button "Click Me" hx-on:click="alert('Thanks, I needed that!')"
18
- )
19
- Invoke-RestMethod -Uri $startedLocalJob.ServerUrl
20
- $startedLocalJob | Stop-Htmx
21
- $startedLocalJob | Remove-Job
+ if (-not $env:GITHUB_WORKSPACE) {
+ $startedLocalJob = Start-Htmx -Htmx (
+ htmx button "Click Me" hx-on:click="alert('Thanks, I needed that!')"
+ )
+ Invoke-RestMethod -Uri $startedLocalJob.ServerUrl
+ $startedLocalJob | Stop-Htmx
22
+ $startedLocalJob | Remove-Job
23
+ } else {
24
+ "This test cannot be run in a GitHub workflow without a service container."
25
+ }
26
}
27
28
0 commit comments