Skip to content

Commit a42572b

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

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

.bazelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ build --symlink_prefix=dist/
66
# Needed as otherwise `env` of TS actions would be ignored.
77
common --incompatible_merge_fixed_and_default_shell_env
88

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

.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)