-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7756251
commit 3712508
Showing
84 changed files
with
12,463 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
[alias] | ||
wasm = "build --release --lib --target wasm32-unknown-unknown" | ||
wasm-debug = "build --lib --target wasm32-unknown-unknown" | ||
t = "test --workspace" | ||
unit-test = "test --workspace" | ||
all-test = "test --workspace" | ||
unit-test = "test --lib" | ||
integration-test = "test --package integration-tests -- --ignored --test-threads 1 -Z unstable-options --report-time" | ||
test-tube = "test --features test-tube" | ||
|
||
[env] | ||
RUSTFLAGS = "-C link-arg=-s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
name: coverage | ||
"on": | ||
# From: https://github.com/codecov/example-rust/blob/main/.github/workflows/rust.yml | ||
name: Coverage | ||
|
||
on: | ||
- push | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
name: coverage | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: "xd009642/tarpaulin:develop-nightly" | ||
options: "--security-opt seccomp=unconfined" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Generate code coverage | ||
run: > | ||
cargo tarpaulin --verbose --workspace --out Xml --exclude-files test-contracts/* *test*.rs packages/dao-dao-macros/* packages/dao-testing/* ci/* | ||
- name: Upload to codecov.io | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: false | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
components: llvm-tools-preview | ||
- name: cargo install cargo-llvm-cov | ||
run: cargo install cargo-llvm-cov | ||
- name: cargo llvm-cov | ||
run: cargo llvm-cov --workspace --lcov --output-path lcov.info | ||
- name: Codecov | ||
# You may pin to the exact commit or the version. | ||
# uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
# Repository upload token - get it from codecov.io. Required only for private repositories | ||
# token: # optional | ||
# Specify whether the Codecov output should be verbose | ||
verbose: true | ||
fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.