Skip to content

Commit

Permalink
Token Factory DAOs (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHartnell authored Aug 23, 2023
1 parent 7756251 commit 3712508
Show file tree
Hide file tree
Showing 84 changed files with 12,463 additions and 692 deletions.
8 changes: 6 additions & 2 deletions .cargo/config
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"
2 changes: 1 addition & 1 deletion .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: unit-test
command: all-test
args: --locked
env:
RUST_BACKTRACE: 1
Expand Down
47 changes: 31 additions & 16 deletions .github/workflows/codecov.yml
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
13 changes: 13 additions & 0 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ jobs:
target: wasm32-unknown-unknown
override: true

- name: Clone libwasmv (needed for test-tube)
uses: actions/checkout@v2
with:
repository: CosmWasm/wasmvm
path: ./wasmvm
ref: v1.3.0

- name: Install libwasmv
run: cd ./wasmvm && make build-rust && cd ../

- name: Rust Dependencies Cache
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -60,6 +70,9 @@ jobs:
- name: Run Integration Tests
run: just integration-test

- name: Run Test Tube Integration Tests
run: just test-tube

- name: Combine Test Gas Reports
run: cd ci/integration-tests/ && jq -rs 'reduce .[] as $item ({}; . * $item)' gas_reports/*.json > gas_report.json

Expand Down
Loading

0 comments on commit 3712508

Please sign in to comment.