Skip to content

Commit c66e1d2

Browse files
committed
build: enforce frozen lockfile mode, enable user-specific Bazel configuration, and disable package manager caching in CI/PR workflows
1 parent 82c3fd6 commit c66e1d2

5 files changed

Lines changed: 25 additions & 14 deletions

File tree

‎.bazelrc‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
common --@aspect_rules_ts//ts:skipLibCheck=always
22
common --@aspect_rules_ts//ts:default_to_tsc_transpiler
3-
common --enable_bzlmod
43
build --symlink_prefix=dist/
54

65
# Needed as otherwise `env` of TS actions would be ignored.
76
common --incompatible_merge_fixed_and_default_shell_env
87

8+
# Frozen lockfile
9+
common --lockfile_mode=error
10+
11+
# More details on failures
12+
build --verbose_failures=true
13+
14+
# CI supports colors but Bazel does not detect it.
15+
common --color=yes
16+
917
# For remote testing
1018
# -----
1119

‎.bazelversion‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.4.0
1+
8.6.0

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ jobs:
2121
steps:
2222
- name: Initialize environment
2323
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@c4344a4e20dbdf9cb8eeb7a7eb91431b98eabd99
24+
with:
25+
disable-package-manager-cache: true
2426
- name: Setup Bazel
2527
uses: angular/dev-infra/github-actions/bazel/setup@c4344a4e20dbdf9cb8eeb7a7eb91431b98eabd99
2628
- name: Setup Bazel Remote Caching
2729
uses: angular/dev-infra/github-actions/bazel/configure-remote@c4344a4e20dbdf9cb8eeb7a7eb91431b98eabd99
2830
with:
2931
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
30-
- name: Install node modules
32+
- name: Test
3133
run: pnpm bazel test --build_tests_only //...

‎.github/workflows/pr.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
steps:
3333
- name: Initialize environment
3434
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@c4344a4e20dbdf9cb8eeb7a7eb91431b98eabd99
35+
with:
36+
disable-package-manager-cache: true
3537
- name: Setup Bazel
3638
uses: angular/dev-infra/github-actions/bazel/setup@c4344a4e20dbdf9cb8eeb7a7eb91431b98eabd99
3739
- name: Setup Bazel Remote Caching
3840
uses: angular/dev-infra/github-actions/bazel/configure-remote@c4344a4e20dbdf9cb8eeb7a7eb91431b98eabd99
39-
with:
40-
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
41-
- name: Install node modules
41+
- name: Test
4242
run: pnpm bazel test --build_tests_only //...

‎MODULE.bazel.lock‎

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)