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 1b981a8 commit 9dddb34
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ jobs:
run: just test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get code coverage
run: just test-coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage data to codecov
uses: codecov/codecov-action@v4
with:
files: lcov.info
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
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ package-language-plugin VERSION:

install-requirements:
rustup component add rustfmt
rustup component add llvm-tools-preview
cargo binstall --no-confirm cargo-nextest@{{NEXTEST_VERSION}}
cargo binstall --no-confirm cargo-component@{{CARGO_COMPONENT_VERSION}}
cargo binstall --no-confirm sd@{{SD_VERSION}}
Expand Down Expand Up @@ -120,6 +121,10 @@ publish-providers:
test:
cargo nextest run --workspace --timings

test-coverage:
cargo llvm-cov --no-report -p pulumi_wasm_core
cargo llvm-cov report --lcov --output-path lcov.info

docs:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material

Expand Down

0 comments on commit 9dddb34

Please sign in to comment.