File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ #  SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
2+ #  SPDX-License-Identifier: MIT
3+ 
4+ name : Test Windows with mDNS 
5+ 
6+ on :
7+   push :
8+     branches : [ main, master ] 
9+   pull_request :
10+     branches : [ main, master ] 
11+   workflow_dispatch :
12+ 
13+ permissions :
14+   contents : read 
15+ 
16+ jobs :
17+   test-windows-mdns :
18+     runs-on : windows-latest 
19+     name : Go Windows with mDNS 
20+     steps :
21+       - uses : actions/checkout@v5 
22+ 
23+       - name : Set up Go 
24+         uses : actions/setup-go@v4 
25+         with :
26+           go-version : ' 1.21' 
27+ 
28+       - uses : actions/cache@v4 
29+         with :
30+           path : | 
31+             ~/go/pkg/mod 
32+             ~/.cache 
33+ key : ${{ runner.os }}-windows-go-${{ hashFiles('**/go.sum') }} 
34+           restore-keys : ${{ runner.os }}-windows-go- 
35+ 
36+       - name : Enable mDNS on Windows 
37+         shell : cmd 
38+         run : | 
39+           reg add "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" /v EnableMDNS /t REG_DWORD /d 1 /f 
40+           netsh advfirewall firewall add rule name="Allow mDNS Inbound" dir=in action=allow protocol=UDP localport=5353 
41+           netsh advfirewall firewall add rule name="Allow mDNS Outbound" dir=out action=allow protocol=UDP localport=5353 
42+           net stop Dnscache 
43+           net start Dnscache 
44+           timeout /t 5 /nobreak 
45+           echo [Verification] 
46+           reg query "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" /v EnableMDNS 
47+           netstat -an | findstr ":5353" 
48+ 
49+ name : Run all tests 
50+         run : go test -v ./... 
51+ 
52+       - name : Run mDNS tests specifically 
53+         run : go test -v -run TestMulticastDNS 
54+ 
55+       - name : Run timing-sensitive tests 
56+         run : | 
57+           go test -v -run TestInvalidAgentStarts 
58+           go test -v -run TestAcceptAggressiveNomination 
59+           go test -v -run TestActiveTCP 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments