Skip to content

Commit

Permalink
build: fix docs deployment and monitoring (#30373)
Browse files Browse the repository at this point in the history
The docs deploy job currently tries to inject/install our snapshot
builds, but Yarn 2.x doesn't allow it by default.

In addition, GitHub actions execute with Ubuntu 24 as of recently, as
this requires additional pre-setup to be able to execute Chromium via
Pupeteer.
  • Loading branch information
devversion authored Jan 23, 2025
1 parent 7c57f82 commit e50a73f
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 114 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ jobs:
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@359350bbc10aab1bac85d0eec61a53377078ab82
with:
cache-node-modules: true
# See: https://github.com/puppeteer/puppeteer/pull/13196 and
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md.
- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@359350bbc10aab1bac85d0eec61a53377078ab82
- name: Setup Bazel RBE
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/scheduled-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@359350bbc10aab1bac85d0eec61a53377078ab82
with:
cache-node-modules: true
# See: https://github.com/puppeteer/puppeteer/pull/13196 and
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md.
- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Install node modules
run: yarn install --frozen-lockfile
- name: Check Docs Site
Expand Down
2 changes: 1 addition & 1 deletion material.angular.io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"lighthouse-logger": "~1.2.0",
"npm-run-all": "^4.1.5",
"protractor": "^7.0.0",
"puppeteer": "~21.1.0",
"puppeteer": "^24.1.0",
"sass": "^1.70.0",
"shelljs": "^0.8.4",
"ts-node": "^8.10.2",
Expand Down
Loading

0 comments on commit e50a73f

Please sign in to comment.