Skip to content

Commit 58bd39a

Browse files
committed
fix(ci): upload testlogs when test step fails
1 parent 8f05bcc commit 58bd39a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/ci.material-aio.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ jobs:
5555
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
5656
- name: Store Test Logs
5757
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
58+
if: always()
5859
with:
5960
name: test-logs
60-
path: bazel-testlogs/
61+
path: material.angular.io/bazel-testlogs/
6162
retention-days: 14
6263

6364
lighthouse:
@@ -68,10 +69,11 @@ jobs:
6869
- name: Install node modules
6970
run: yarn install --immutable
7071
- name: Execute Lighthouse Audit
71-
run: yarn bazel test --test_tag_filters=audit --test_output=errors //...
72+
run: yarn bazel test --test_tag_filters=audit //...
7273
- name: Store Audit Logs
7374
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
75+
if: always()
7476
with:
7577
name: lighthouse-logs
76-
path: bazel-testlogs/
78+
path: material.angular.io/bazel-testlogs/
7779
retention-days: 14

.github/workflows/pr.material-aio.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ jobs:
5353
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
5454
- name: Store Test Logs
5555
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
56+
if: always()
5657
with:
5758
name: test-logs
58-
path: bazel-testlogs/
59+
path: material.angular.io/bazel-testlogs/
5960
retention-days: 14
6061

6162
lighthouse:
@@ -69,7 +70,8 @@ jobs:
6970
run: yarn bazel test --test_tag_filters=audit //...
7071
- name: Store Audit Logs
7172
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
73+
if: always()
7274
with:
7375
name: lighthouse-logs
74-
path: bazel-testlogs/
76+
path: material.angular.io/bazel-testlogs/
7577
retention-days: 14

0 commit comments

Comments
 (0)