Skip to content

Commit 87feb33

Browse files
committed
test
1 parent fb844e6 commit 87feb33

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/pr.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

tests/legacy-cli/e2e/tests/basic/rebuild.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { getGlobalVariable, loopbackAddr } from '../../utils/env';
33
import { appendToFile, replaceInFile, writeMultipleFiles } from '../../utils/fs';
44
import { silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process';
55
import { ngServe } from '../../utils/project';
6+
import { execSync } from 'node:child_process';
67

78
export 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(/\$\$_E2E_GOLDEN_VALUE_1/)) {

0 commit comments

Comments
 (0)