Skip to content

Commit

Permalink
test: disable apparmor on ubuntu (#944)
Browse files Browse the repository at this point in the history
Chrome requires an ability to create sandboxes and by default AppArmor
disallows that.
  • Loading branch information
OrKoN authored Jan 10, 2025
1 parent d31d389 commit d565ec3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# https://github.com/actions/virtual-environments#available-environments
os: [ubuntu-latest, macos-latest, windows-latest]
# https://github.com/nodejs/Release#release-schedule
node: [18, 20, 22]
node: [20, 22]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.0.0
Expand All @@ -35,6 +35,10 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Disable AppArmor
if: ${{ matrix.os == 'ubuntu-latest' }}
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns

- name: Install dependencies
run: |
npm ci
Expand Down Expand Up @@ -70,6 +74,10 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Disable AppArmor
if: ${{ matrix.os == 'ubuntu-latest' }}
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns

- name: Install dependencies
run: |
sudo apt-get install xvfb
Expand Down

0 comments on commit d565ec3

Please sign in to comment.