Skip to content

Commit

Permalink
Code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel committed Sep 29, 2024
1 parent 4b1e5d8 commit 1105a6d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[profile.ci.junit] # this can be some other profile, too
path = "junit.xml"
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ jobs:
files: lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
files: junit.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- run: git add . && git diff
- run: git diff --cached
- name: Ensure no files have changed
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ target

output.log
*.wasm
lcov.info
lcov.info
junit.xml
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ publish-providers:
# DO NOT EDIT - PUBLISH-PROVIDERS - END

test:
cargo nextest run --workspace --timings
cargo nextest run --profile ci --workspace --timings

test-coverage:
cargo llvm-cov --no-report -p pulumi_wasm_core
Expand Down

0 comments on commit 1105a6d

Please sign in to comment.