Skip to content

Commit

Permalink
fix: upload testlogs when test step fails
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Jan 8, 2025
1 parent 8f05bcc commit 4415539
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.material-aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
- name: Store Test Logs
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
if: always()
with:
name: test-logs
path: bazel-testlogs/
Expand All @@ -68,9 +69,10 @@ jobs:
- name: Install node modules
run: yarn install --immutable
- name: Execute Lighthouse Audit
run: yarn bazel test --test_tag_filters=audit --test_output=errors //...
run: yarn bazel test --test_tag_filters=audit //...
- name: Store Audit Logs
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
if: always()
with:
name: lighthouse-logs
path: bazel-testlogs/
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr.material-aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
- name: Store Test Logs
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
if: always()
with:
name: test-logs
path: bazel-testlogs/
Expand All @@ -69,6 +70,7 @@ jobs:
run: yarn bazel test --test_tag_filters=audit //...
- name: Store Audit Logs
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
if: always()
with:
name: lighthouse-logs
path: bazel-testlogs/
Expand Down

0 comments on commit 4415539

Please sign in to comment.