mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-21 17:13:57 +02:00
Attempt to fix tests for Nightly builds
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
2cdf1cf3b6
commit
fca69978aa
14
.github/workflows/build_test.yaml
vendored
14
.github/workflows/build_test.yaml
vendored
@ -42,14 +42,24 @@ jobs:
|
|||||||
run: ${{ inputs.prepare_cmd }}
|
run: ${{ inputs.prepare_cmd }}
|
||||||
if: inputs.prepare_cmd
|
if: inputs.prepare_cmd
|
||||||
|
|
||||||
|
- name: Expand executable path
|
||||||
|
id: executable
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
EXECUTABLE: ${{ inputs.executable }}
|
||||||
|
run: |
|
||||||
|
FILES=($EXECUTABLE)
|
||||||
|
echo "path=${FILES[0]}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# 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: $RUN_AS npx @electron/fuses write --app ${{ inputs.executable }} EnableNodeCliInspectArguments=on
|
run: $RUN_AS npx @electron/fuses write --app "$EXECUTABLE" EnableNodeCliInspectArguments=on
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
# We need sudo on Linux as it is installed in /opt/
|
# We need sudo on Linux as it is installed in /opt/
|
||||||
RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }}
|
RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }}
|
||||||
|
EXECUTABLE: ${{ steps.executable.outputs.path }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
|
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
|
||||||
@ -57,7 +67,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
run: "yarn test ${{ runner.os != 'Linux' && '--ignore-snapshots' || '' }}"
|
run: "yarn test ${{ runner.os != 'Linux' && '--ignore-snapshots' || '' }}"
|
||||||
env:
|
env:
|
||||||
ELEMENT_DESKTOP_EXECUTABLE: ${{ inputs.executable }}
|
ELEMENT_DESKTOP_EXECUTABLE: ${{ steps.executable.outputs.path }}
|
||||||
|
|
||||||
- name: Upload HTML report
|
- name: Upload HTML report
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user