-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c8f384
commit 0a3fdfe
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
echo '::group::ππ Setting up Chrome Linux Sandbox' | ||
# Based on the instructions found here: https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md | ||
if [ "$(lsb_release -rs)" = "24.04" ]; then | ||
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | ||
echo 'Done' | ||
fi | ||
echo '::endgroup::' | ||
|
||
echo '::group::ππ Installing NPM packages' | ||
npm ci | ||
echo '::endgroup::' | ||
|
||
echo '::group::ππ Running tests' | ||
npm run test | ||
echo '::endgroup::' |