forked from CringeStudios/element-desktop
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
360bda6d4f
commit
32d67a443d
15
.github/workflows/build_and_test.yaml
vendored
15
.github/workflows/build_and_test.yaml
vendored
@ -93,10 +93,11 @@ jobs:
|
|||||||
- name: Windows (x86) MSI
|
- name: Windows (x86) MSI
|
||||||
os: windows-2022
|
os: windows-2022
|
||||||
artifact: win-ia32
|
artifact: win-ia32
|
||||||
executable: "C:/Program Files (x86)/Element/Element.exe"
|
# We avoid installing to Program Files as then we lack privileges to modify fuses for Playwright testing
|
||||||
|
executable: "${{ env.RUNNER_TEMP }}/Element/Element.exe"
|
||||||
prepare_cmd: |
|
prepare_cmd: |
|
||||||
$file = Get-Item ./dist/*.msi | Select -First 1 -ExpandProperty FullName
|
$file = Get-Item ./dist/*.msi | Select -First 1 -ExpandProperty FullName
|
||||||
Start-Process $file -ArgumentList '/quiet' -Wait
|
Start-Process $file -ArgumentList '/quiet APPLICATIONFOLDER="${{ env.RUNNER_TEMP }}/Element"' -Wait
|
||||||
- name: Windows (x64) Squirrel
|
- name: Windows (x64) Squirrel
|
||||||
os: windows-2022
|
os: windows-2022
|
||||||
artifact: win-x64
|
artifact: win-x64
|
||||||
@ -107,10 +108,11 @@ jobs:
|
|||||||
- name: Windows (x64) MSI
|
- name: Windows (x64) MSI
|
||||||
os: windows-2022
|
os: windows-2022
|
||||||
artifact: win-x64
|
artifact: win-x64
|
||||||
executable: "C:/Program Files/Element/Element.exe"
|
# We avoid installing to Program Files as then we lack privileges to modify fuses for Playwright testing
|
||||||
|
executable: "${{ env.RUNNER_TEMP }}/Element/Element.exe"
|
||||||
prepare_cmd: |
|
prepare_cmd: |
|
||||||
$file = Get-Item ./dist/*.msi | Select -First 1 -ExpandProperty FullName
|
$file = Get-Item ./dist/*.msi | Select -First 1 -ExpandProperty FullName
|
||||||
Start-Process $file -ArgumentList '/quiet' -Wait
|
Start-Process $file -ArgumentList '/quiet APPLICATIONFOLDER="${{ env.RUNNER_TEMP }}/Element"' -Wait
|
||||||
name: Test ${{ matrix.name }}
|
name: Test ${{ matrix.name }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
@ -136,8 +138,11 @@ jobs:
|
|||||||
# We previously disabled the `EnableNodeCliInspectArguments` fuse, but Playwright requires
|
# We previously disabled the `EnableNodeCliInspectArguments` fuse, but Playwright requires
|
||||||
# it to be enabled to test Electron apps, so turn it back on.
|
# it to be enabled to test Electron apps, so turn it back on.
|
||||||
- name: Set EnableNodeCliInspectArguments fuse enabled
|
- name: Set EnableNodeCliInspectArguments fuse enabled
|
||||||
run: sudo npx @electron/fuses write --app "${{ matrix.executable }}" EnableNodeCliInspectArguments=on
|
run: $RUN_AS npx @electron/fuses write --app ${{ matrix.executable }} EnableNodeCliInspectArguments=on
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
# We need sudo on Linux as it is installed in /opt/
|
||||||
|
RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
|
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user