Centralize Ubuntu Electron fix

This commit is contained in:
Adam Gastineau 2025-01-08 05:19:57 -08:00
parent 1a7ec58ab7
commit b210a1152b
3 changed files with 4 additions and 8 deletions

View file

@ -54,6 +54,10 @@ runs:
npx playwright install --with-deps ${{ inputs.browsers-to-install }} npx playwright install --with-deps ${{ inputs.browsers-to-install }}
echo "::endgroup::" echo "::endgroup::"
shell: bash shell: bash
- name: Setup Ubuntu Electron
if: ${{ runner.os == 'Linux' }}
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Run tests - name: Run tests
if: inputs.shell == 'bash' if: inputs.shell == 'bash'
run: | run: |

View file

@ -147,10 +147,6 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Ubuntu
if: ${{ runner.os == 'Linux' }}
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- uses: ./.github/actions/run-test - uses: ./.github/actions/run-test
with: with:
browsers-to-install: chromium browsers-to-install: chromium

View file

@ -213,10 +213,6 @@ jobs:
contents: read # This is required for actions/checkout to succeed contents: read # This is required for actions/checkout to succeed
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Ubuntu
if: ${{ runner.os == 'Linux' }}
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- run: npm install -g yarn@1 - run: npm install -g yarn@1
- run: npm install -g pnpm@8 - run: npm install -g pnpm@8
- uses: ./.github/actions/run-test - uses: ./.github/actions/run-test