Skip to content

Commit 4415539

Browse files
committed
fix: upload testlogs when test step fails
1 parent 8f05bcc commit 4415539

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ 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
6061
path: bazel-testlogs/
@@ -68,9 +69,10 @@ 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
7678
path: bazel-testlogs/

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

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ 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
5859
path: bazel-testlogs/
@@ -69,6 +70,7 @@ 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
7476
path: bazel-testlogs/

0 commit comments

Comments
 (0)