File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
tests/legacy-cli/e2e/tests/basic Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,9 @@ jobs:
141141 - name : Setup Bazel
142142 uses : angular/dev-infra/github-actions/bazel/setup@b015169b635123c1ab9084f604e36b6342eac171
143143 - name : Setup Bazel RBE
144- uses : angular/dev-infra/github-actions/bazel/configure-remote@a5e90c88a0fc012de199fe6f148c12b5476d6d1b
144+ uses : angular/dev-infra/github-actions/bazel/configure-remote@2667d139a421977a40c3ea7ec768609fb19a8b9d
145+ with :
146+ allow_windows_rbe : true
145147
146148 - name : Setup tmate session
147149 uses : mxschmitt/action-tmate@v3
@@ -153,6 +155,9 @@ jobs:
153155 wsl-conf : |
154156 [interop]
155157 appendWindowsPath=false
158+ [wsl2]
159+ firewall=false
160+ localhostForwarding=false
156161 wsl-shell-command : bash --login -euo pipefail
157162 additional-packages : |
158163 curl
@@ -196,6 +201,9 @@ jobs:
196201 - name : Create link to WSL drive
197202 shell : powershell
198203 run : New-Item -ItemType SymbolicLink -Path "C:\wsl_root" -Target "\\wsl.localhost\Debian"
204+ - name : Disable WSL <> Host virtual network firewall (to allow for testing)
205+ shell : powershell
206+ run : Set-NetFirewallProfile -Profile Public -DisabledInterfaceAliases "vEthernet (WSL)"
199207 - name : Run CLI E2E tests
200208 env :
201209 # See: https://devblogs.microsoft.com/commandline/share-environment-vars-between-wsl-and-windows
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { getGlobalVariable, loopbackAddr } from '../../utils/env';
33import { appendToFile , replaceInFile , writeMultipleFiles } from '../../utils/fs' ;
44import { silentNg , waitForAnyProcessOutputToMatch } from '../../utils/process' ;
55import { ngServe } from '../../utils/project' ;
6+ import { execSync } from 'node:child_process' ;
67
78export default async function ( ) {
89 const esbuild = getGlobalVariable ( 'argv' ) [ 'esbuild' ] ;
@@ -66,6 +67,17 @@ export default async function () {
6667 } ) ,
6768 ] ) ;
6869 {
70+ console . error ( `http://${ loopbackAddr } :${ port } /main.js` ) ;
71+ console . error (
72+ `Content` ,
73+ execSync ( `curl http://${ loopbackAddr } :${ port } /main.js` , { encoding : 'utf8' } ) ,
74+ ) ;
75+
76+ console . error (
77+ `CMD Content` ,
78+ execSync ( `cmd /c curl http://${ loopbackAddr } :${ port } /main.js` , { encoding : 'utf8' } ) ,
79+ ) ;
80+
6981 const response = await fetch ( `http://${ loopbackAddr } :${ port } /main.js` ) ;
7082 const body = await response . text ( ) ;
7183 if ( ! body . match ( / \$ \$ _ E 2 E _ G O L D E N _ V A L U E _ 1 / ) ) {
You can’t perform that action at this time.
0 commit comments