Skip to content

Commit

Permalink
Disable AppArmor in CI for headless Chrome (#873)
Browse files Browse the repository at this point in the history
* Disable sandbox for headless Chrome

* Disable AppArmor instead
  • Loading branch information
nwalters512 authored Jan 28, 2025
1 parent fadaeb4 commit fbc4d31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .config/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module.exports = function(config) {
flags: [
'--disable-translate',
'--disable-extensions',
'--remote-debugging-port=9223'
'--remote-debugging-port=9223',
]
};
}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# This is needed to run headless Chrome on Ubuntu 24.04.
- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- run: npm ci
- run: npm run build
- run: npm run build:docs
Expand Down

0 comments on commit fbc4d31

Please sign in to comment.