Skip to content

Commit 9ce1f54

Browse files
committed
refactor: move rules_angular into repo
This commit moves rules_angular into this repo.
1 parent 9f1bfdc commit 9ce1f54

107 files changed

Lines changed: 16462 additions & 9 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,25 @@ jobs:
4646
- run: pnpm install --frozen-lockfile
4747
- run: pnpm bazel test -- //...
4848

49+
rules_angular:
50+
timeout-minutes: 15
51+
runs-on: ubuntu-latest
52+
defaults:
53+
run:
54+
working-directory: bazel/rules/rules_angular
55+
steps:
56+
# Because the checkout and setup node action is contained in the dev-infra repo, we must
57+
# checkout the repo to be able to run the action we have created. Other repos will skip
58+
# this step.
59+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
60+
- uses: ./github-actions/npm/checkout-and-setup-node
61+
- uses: ./github-actions/bazel/setup
62+
- uses: ./github-actions/bazel/configure-remote
63+
with:
64+
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
65+
- run: pnpm install --frozen-lockfile
66+
- run: pnpm bazel test -- //...
67+
4968
# macos testing is disabled as we do not have any targets we currently test.
5069
#test-macos:
5170
# timeout-minutes: 30

.github/workflows/pr.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ jobs:
5555
- run: pnpm install --frozen-lockfile
5656
- run: pnpm bazel test -- //...
5757

58+
rules_angular:
59+
timeout-minutes: 15
60+
runs-on: ubuntu-latest
61+
defaults:
62+
run:
63+
working-directory: bazel/rules/rules_angular
64+
steps:
65+
# Because the checkout and setup node action is contained in the dev-infra repo, we must
66+
# checkout the repo to be able to run the action we have created. Other repos will skip
67+
# this step.
68+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
69+
- uses: ./github-actions/npm/checkout-and-setup-node
70+
- uses: ./github-actions/bazel/setup
71+
- uses: ./github-actions/bazel/configure-remote
72+
- run: pnpm install --frozen-lockfile
73+
- run: pnpm bazel test -- //...
74+
5875
# macos testing is disabled as we do not have any targets we currently test.
5976
#test-macos:
6077
# timeout-minutes: 30

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ yarn-error.log
3939
.bazelrc.user
4040

4141
# Bazel generated directories
42-
/dist/
42+
**/dist/
4343
/bazel-out
4444

4545
# Ignore ng-dev logs and user-config

MODULE.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ git_override(
3636
)
3737

3838
bazel_dep(name = "rules_angular")
39-
git_override(
39+
local_path_override(
4040
module_name = "rules_angular",
41-
commit = "c879cfd1e5f55ff4fce089028b4c842110a7c876",
42-
remote = "https://github.com/angular/rules_angular.git",
41+
path = "bazel/rules/rules_angular",
4342
)
4443

4544
yq = use_extension("@yq.bzl//yq:extensions.bzl", "yq")

MODULE.bazel.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

REPO.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ ignore_directories([
22
"dist",
33
"**/node_modules/**",
44
"**/.angular",
5+
"bazel/rules/**",
56
])

0 commit comments

Comments
 (0)