Skip to content

Commit

Permalink
Pin Ubuntu to v22.04 in CI to avoid sandbox issues (#224)
Browse files Browse the repository at this point in the history
Ubuntu 23.10+ ships with an AppArmor profile that prevents Chrome for Testing binaries (used by Puppeteer) from using user namespaces, causing "No usable sandbox!" errors.
See https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu
  • Loading branch information
Ndpnt authored Jan 21, 2025
1 parent f2c9275 commit 41c443b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
workflow_call:

jobs:
# Using Ubuntu 22.04 due to AppArmor restrictions in newer versions (23.10+) that interfere with Puppeteer's sandbox functionality. See https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu
validate_schema:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand All @@ -16,7 +17,7 @@ jobs:
- run: npm run test:schema

lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand All @@ -26,7 +27,7 @@ jobs:
- run: npm run lint

validate_modified_declarations:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 41c443b

Please sign in to comment.