Skip to content

Commit

Permalink
fix(ci): 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 58bd39a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.material-aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ 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/
path: material.angular.io/bazel-testlogs/
retention-days: 14

lighthouse:
Expand All @@ -68,10 +69,11 @@ 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/
path: material.angular.io/bazel-testlogs/
retention-days: 14
6 changes: 4 additions & 2 deletions .github/workflows/pr.material-aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ 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/
path: material.angular.io/bazel-testlogs/
retention-days: 14

lighthouse:
Expand All @@ -69,7 +70,8 @@ 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/
path: material.angular.io/bazel-testlogs/
retention-days: 14

0 comments on commit 58bd39a

Please sign in to comment.