File tree Expand file tree Collapse file tree 2 files changed +5
-36
lines changed
shared-actions/windows-bazel-test Expand file tree Collapse file tree 2 files changed +5
-36
lines changed Original file line number Diff line number Diff line change 4040 env :
4141 # See: https://devblogs.microsoft.com/commandline/share-environment-vars-between-wsl-and-windows
4242 WSLENV : ' GOOGLE_APPLICATION_CREDENTIALS/p'
43-
44- - name : Copying binary artifact to host
45- shell : wsl-bash {0}
46- working-directory : ${{steps.init_wsl.outputs.repo_path}}
47- run : |
48- tar -cf /tmp/test.tar.gz dist/bin/tests/legacy-cli/${{inputs.test_target_name}}_
49- mkdir /mnt/c/test
50- mv /tmp/test.tar.gz /mnt/c/test
51- (cd /mnt/c/test && tar -xf /mnt/c/test/test.tar.gz)
52-
53- - name : Convert symlinks for Windows host
54- shell : wsl-bash {0}
55- working-directory : ${{steps.init_wsl.outputs.repo_path}}
56- run : |
57- runfiles_dir="/mnt/c/test/dist/bin/tests/legacy-cli/${{inputs.test_target_name}}_/${{inputs.test_target_name}}.bat.runfiles"
58-
59- # Make WSL symlinks compatible on Windows native file system.
60- node scripts/windows-testing/convert-symlinks.mjs $runfiles_dir "${{steps.init_wsl.outputs.cmd_path}}"
61-
62- # Needed for resolution.
63- # TODO(devversion): consult with Aspect on why this is needed.
64- (cd $runfiles_dir/angular_cli && ${{steps.init_wsl.outputs.cmd_path}} /C "mklink /D external ..")
65-
66- - name : Run tests
67- shell : bash # Note: This is Git Bash.
68- env :
69- BAZEL_BINDIR : ' .'
70- working-directory : " C:\\ test"
71- run : |
72- cd dist/bin/tests/legacy-cli/${{inputs.test_target_name}}_/${{inputs.test_target_name}}.bat.runfiles/angular_cli
73- ../../${{inputs.test_target_name}} ${{inputs.test_args}}
Original file line number Diff line number Diff line change @@ -135,11 +135,11 @@ jobs:
135135 uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@0000d926624b2fd918e93f1c6b5e2defba9af91f
136136 - run : ls -alh D:/a/angular-cli/angular-cli
137137 shell : bash
138- # - name: Run CLI E2E tests
139- # uses: ./.github/shared-actions/windows-bazel-test
140- # with:
141- # test_target_name: e2e_node22
142- # test_args: --esbuild --glob "tests/basic/{build,rebuild}.ts"
138+ - name : Run CLI E2E tests
139+ uses : ./.github/shared-actions/windows-bazel-test
140+ with :
141+ test_target_name : e2e_node22
142+ test_args : --esbuild --glob "tests/basic/{build,rebuild}.ts"
143143 - run : ls -alh D:/a/angular-cli/angular-cli
144144 shell : bash
145145
You can’t perform that action at this time.
0 commit comments