Skip to content

Commit c483fff

Browse files
committed
ci: try to fix tests
1 parent 6f38a63 commit c483fff

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/e2e_test_windows.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ jobs:
3636
if: runner.os == 'Windows'
3737
run: |
3838
vfox install erlang@25.3.2.12
39-
vfox activate pwsh | Out-File -FilePath vfox_env.ps1
39+
if (-not (Test-Path -Path $PROFILE)) { New-Item -Type File -Path $PROFILE -Force }; Add-Content -Path $PROFILE -Value 'Invoke-Expression "$(vfox activate pwsh)"'
40+
# vfox activate pwsh | Out-File -FilePath vfox_env.ps1
4041
- name: test installation
4142
if: runner.os == 'Windows'
43+
shell: powershell -NoExit -command ". '{0}'"
4244
run: |
43-
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
44-
cat vfox_env.ps1
45-
& .\vfox_env.ps1
45+
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
46+
# cat vfox_env.ps1
47+
# & .\vfox_env.ps1
4648
echo $env:__VFOX_SHELL
4749
echo $env:__VFOX_CURTMPPATH
4850
vfox use -g erlang@25.3.2.12

0 commit comments

Comments
 (0)