We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21f39f0 commit c8f2aaaCopy full SHA for c8f2aaa
HtmxPS.tests.ps1
@@ -20,9 +20,16 @@ describe HtmxPS {
20
Invoke-RestMethod -Uri $startedLocalJob.ServerUrl
21
$startedLocalJob | Stop-Htmx
22
$startedLocalJob | Remove-Job
23
- } else {
24
- "This test cannot be run in a GitHub workflow without a service container."
25
- }
+ } elseif ($env:HOSTNAME) {
+ $startedLocalJob = Start-Htmx -Htmx (
+ htmx button "Click Me" hx-on:click="alert('Thanks, I needed that!')"
26
+ ) -ServerUrl "http://$env:HOSTNAME:$(Get-Random -Min 4kb -Max 32kb)"
27
+ Invoke-RestMethod -Uri $startedLocalJob.ServerUrl
28
+ $startedLocalJob | Stop-Htmx
29
+ $startedLocalJob | Remove-Job
30
+ } else {
31
+ "This test cannot be run without a GitHub workflow that has a host name."
32
+ }
33
}
34
35
0 commit comments