Skip to content

Commit b4cc8d4

Browse files
josephperrottthePunderWoman
authored andcommitted
ci: upload build artifacts on each pr run (angular#56787)
Upload the snapshot build artifacts to each pr run to use for testing. PR Close angular#56787
1 parent f407e3c commit b4cc8d4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/pr.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,29 @@ jobs:
7575
- name: Run CI tests for framework
7676
run: yarn test:ci
7777

78+
artifacts:
79+
needs: [test]
80+
if: needs.test.result == 'success'
81+
runs-on: ubuntu-latest
82+
steps:
83+
- name: Initialize environment
84+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@03b8a7dffd1205e061f0bee949024ebefc2a6592
85+
with:
86+
cache-node-modules: true
87+
- name: Setup Bazel
88+
uses: angular/dev-infra/github-actions/bazel/setup@03b8a7dffd1205e061f0bee949024ebefc2a6592
89+
- name: Setup Bazel Remote Caching
90+
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
91+
- name: Install node modules
92+
run: yarn install --frozen-lockfile --network-timeout 100000
93+
- name: Run CI tests for framework
94+
run: yarn tsx ./scripts/build/build-packages-dist.mts
95+
- name: Archive build artifacts
96+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
97+
with:
98+
name: pr-artifacts-${{ github.event.number }}
99+
path: dist/packages-dist/
100+
78101
adev:
79102
runs-on:
80103
labels: ubuntu-latest-4core

0 commit comments

Comments
 (0)