Skip to content

Commit

Permalink
patch: passing url e2e ?
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed Apr 26, 2024
1 parent 015e9ae commit b389627
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ runs:
if: runner.os == 'Windows'
shell: pwsh
run: |
$virtual_path = New-VHD -Path virtual_test_disk.vhdx -SizeBytes 4GB
Mount-VHD -Path $virtual_path
$virtual_path = Get-DiskImage -ImagePath virtual_test_disk.vhdx | Get-Partition | Get-Volume
echo "TARGET_DRIVE=${virtual_path}" >> $env:GITHUB_ENV
New-VHD -Path virtual_test_disk.vhdx -SizeBytes 4GB
$vhd = Mount-VHD -Path "virtual_test_disk.vhdx" -Passthru
$disk = Get-Disk -Number $vhd.Number
echo "TARGET_DRIVE=$($disk.DeviceId)" >> $env:GITHUB_ENV
echo "ETCHER_INCLUDE_VIRTUAL_DRIVES=1" >> $env:GITHUB_ENV
- name: Test release
Expand All @@ -90,8 +90,13 @@ runs:
# tests; note that they required `package` to run before
npm run wdio
sudo npm run wdio-e2e
if [[runner.os == 'indows']]; then
npm run wdio-e2e
else
sudo npm run wdio-e2e
fi
env:
# https://www.electronjs.org/docs/latest/api/environment-variables
ELECTRON_NO_ATTACH_CONSOLE: 'true'
Expand Down

0 comments on commit b389627

Please sign in to comment.