Make Electron fix selective to Electron tests
This commit is contained in:
parent
6c49741680
commit
4c9a01be33
7
.github/actions/run-test/action.yml
vendored
7
.github/actions/run-test/action.yml
vendored
|
|
@ -36,13 +36,6 @@ runs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node-version }}
|
node-version: ${{ inputs.node-version }}
|
||||||
- uses: ./.github/actions/enable-microphone-access
|
- uses: ./.github/actions/enable-microphone-access
|
||||||
- name: Setup Ubuntu Binary Installation
|
|
||||||
if: ${{ runner.os == 'Linux' }}
|
|
||||||
run: |
|
|
||||||
if grep -q "Ubuntu 24" /etc/os-release; then
|
|
||||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
|
||||||
fi
|
|
||||||
shell: bash
|
|
||||||
- run: |
|
- run: |
|
||||||
echo "::group::npm ci"
|
echo "::group::npm ci"
|
||||||
npm ci
|
npm ci
|
||||||
|
|
|
||||||
7
.github/workflows/tests_others.yml
vendored
7
.github/workflows/tests_others.yml
vendored
|
|
@ -147,6 +147,13 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup Ubuntu Binary Installation # TODO: Remove when https://github.com/electron/electron/issues/42510 is fixed
|
||||||
|
if: ${{ runner.os == 'Linux' }}
|
||||||
|
run: |
|
||||||
|
if grep -q "Ubuntu 24" /etc/os-release; then
|
||||||
|
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
- uses: ./.github/actions/run-test
|
- uses: ./.github/actions/run-test
|
||||||
with:
|
with:
|
||||||
browsers-to-install: chromium
|
browsers-to-install: chromium
|
||||||
|
|
|
||||||
7
.github/workflows/tests_primary.yml
vendored
7
.github/workflows/tests_primary.yml
vendored
|
|
@ -215,6 +215,13 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: npm install -g yarn@1
|
- run: npm install -g yarn@1
|
||||||
- run: npm install -g pnpm@8
|
- run: npm install -g pnpm@8
|
||||||
|
- name: Setup Ubuntu Binary Installation # TODO: Remove when https://github.com/electron/electron/issues/42510 is fixed
|
||||||
|
if: ${{ runner.os == 'Linux' }}
|
||||||
|
run: |
|
||||||
|
if grep -q "Ubuntu 24" /etc/os-release; then
|
||||||
|
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
- uses: ./.github/actions/run-test
|
- uses: ./.github/actions/run-test
|
||||||
with:
|
with:
|
||||||
command: npm run itest
|
command: npm run itest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue