Skip to content

Commit ec9581c

Browse files
committed
ci: use shared setup actions for dev-app preview deploy job
Switches to use the shared dev-infra actions for setting up Bazel, RBE and Yarn. This was not done as part of the GHA migrations.
1 parent f99deda commit ec9581c

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

.github/actions/yarn-install/action.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/build-dev-app.yml renamed to .github/workflows/preview-build-dev-app.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ jobs:
2222
(github.event.action == 'labeled' && github.event.label.name == 'dev-app preview') ||
2323
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'dev-app preview'))
2424
steps:
25-
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.0.0
26-
- uses: ./.github/actions/yarn-install
27-
28-
- uses: angular/dev-infra/github-actions/setup-bazel-remote-exec@fb30926790c6225d553b91a4818cab2fdde4fb4e
25+
- name: Initialize environment
26+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fb30926790c6225d553b91a4818cab2fdde4fb4e
2927
with:
30-
bazelrc: ./.bazelrc.user
31-
32-
# Build the web package. Note: We run Bazel from a low-resource Github action container,
33-
# so we manually need to instruct Bazel to run more actions concurrently as by default
34-
# the number of concurrent actions is determined based on the host resources.
35-
- run: bazel build //src/dev-app:web_package --symlink_prefix=dist/ --jobs=32
28+
cache-node-modules: true
29+
- name: Setup Bazel
30+
uses: angular/dev-infra/github-actions/bazel/setup@fb30926790c6225d553b91a4818cab2fdde4fb4e
31+
- name: Setup Bazel RBE
32+
uses: angular/dev-infra/github-actions/bazel/configure-remote@fb30926790c6225d553b91a4818cab2fdde4fb4e
33+
34+
# Build the web package
35+
- run: bazel build //src/dev-app:web_package --symlink_prefix=dist/
3636

3737
- uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@fb30926790c6225d553b91a4818cab2fdde4fb4e
3838
with:

0 commit comments

Comments
 (0)