Skip to content

Commit

Permalink
ci: add ci nextest profile
Browse files Browse the repository at this point in the history
Signed-off-by: 0x009922 <[email protected]>
  • Loading branch information
0x009922 committed Oct 9, 2024
1 parent 3f9f9a3 commit e938063
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[profile.ci]
retries = 2
fail-fast = false
failure-output = "immediate-final"

14 changes: 6 additions & 8 deletions .github/workflows/iroha2-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
LLVM_PROFILE_FILE_NAME: "iroha-%p-%m.profraw"
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@nextest
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Download executor.wasm
uses: actions/download-artifact@v4
with:
Expand All @@ -105,21 +107,17 @@ jobs:
path: ${{ env.WASM_SAMPLES_TARGET_DIR }}
- name: Install irohad
run: which irohad || cargo install --path crates/irohad --locked
- uses: taiki-e/install-action@nextest
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Run tests (no default features)
- name: Test with no default features
run: >
mold --run cargo llvm-cov nextest
--profile ci
--no-default-features
--no-fail-fast --retries 2
--failure-output immediate-final
--branch --no-report
- name: Run tests (all features)
- name: Test with all features
run: >
mold --run cargo llvm-cov nextest
--profile ci
--all-features
--no-fail-fast --retries 2
--failure-output immediate-final
--branch --no-report
- name: Generate lcov report
run: cargo llvm-cov report --lcov --output-path lcov.info
Expand Down

0 comments on commit e938063

Please sign in to comment.