Skip to content

Commit

Permalink
ci: refine artifacts upload policy
Browse files Browse the repository at this point in the history
Signed-off-by: 0x009922 <[email protected]>
  • Loading branch information
0x009922 committed Oct 18, 2024
1 parent 435387c commit 05da0bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/iroha2-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ jobs:
- name: Install irohad
run: which irohad || cargo install --path crates/irohad --locked
- name: Test with no default features
id: test_no_features
run: >
mold --run cargo llvm-cov nextest
--no-default-features
--branch --no-report
- name: Test with all features
id: test_all_features
run: >
mold --run cargo llvm-cov nextest
--all-features
Expand All @@ -126,7 +128,7 @@ jobs:
name: report-coverage
path: coverage.txt
- name: Upload test network artifacts
if: failure()
if: failure() && (steps.test_no_features.outcome == 'failure' || steps.test_all_features.outcome == 'failure')
uses: actions/upload-artifact@v4
with:
name: test_network_runs
Expand Down

0 comments on commit 05da0bd

Please sign in to comment.