Skip to content

Commit

Permalink
chore: use xtask
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Nov 15, 2023
1 parent 7a0a563 commit 3c26883
Show file tree
Hide file tree
Showing 11 changed files with 311 additions and 42 deletions.
1 change: 1 addition & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[alias]
clarinet-install = "install --path components/clarinet-cli --locked --force"
xtask = "run --package xtask --"
10 changes: 2 additions & 8 deletions .github/workflows/ci-clarinet-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,8 @@ jobs:
if: steps.cache-cargo.outputs.cache-hit != 'true'
run: RUSTC_BOOTSTRAP=1 cargo install grcov

- name: Build & Unit Test
env:
RUSTFLAGS: "-C instrument-coverage"
LLVM_PROFILE_FILE: "${{ env.COMPONENT }}-%p-%m.profraw"
run: cargo test --workspace --locked --exclude clarinet-sdk-wasm --exclude clarity-jupyter-kernel

- name: Generate coverage
run: grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- name: Unit Tests
run: cargo xtask coverage

- name: Upload coverage report
uses: codecov/codecov-action@v3
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,8 @@ jobs:
if: steps.cache-cargo.outputs.cache-hit != 'true'
run: RUSTC_BOOTSTRAP=1 cargo install grcov

- name: Build & Unit Test
env:
RUSTFLAGS: "-C instrument-coverage"
LLVM_PROFILE_FILE: "${{ env.COMPONENT }}-%p-%m.profraw"
run: cargo test --workspace --locked --exclude clarinet-sdk-wasm --exclude clarity-jupyter-kernel

- name: Generate coverage
run: grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- name: Unit Tests
run: cargo xtask coverage

- name: Upload coverage report
uses: codecov/codecov-action@v3
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
/coverage
.DS_Store
clarinet.code-workspace
history.txt
Expand All @@ -18,3 +19,5 @@ components/stacks-devnet-js/build
*.zip
*.rdb
*.lcov
*.info
*.profraw
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"rust-analyzer.check.overrideCommand": [
"cargo",
"clippy",
"--package=clarinet-cli",
"--workspace",
"--exclude=clarinet-sdk-wasm",
"--exclude=clarity-jupyter-kernel",
"--message-format=json"
]
}
Loading

0 comments on commit 3c26883

Please sign in to comment.