Skip to content

Commit

Permalink
chore: add code coverage github action
Browse files Browse the repository at this point in the history
chore: fix authors/versions
  • Loading branch information
PFC-developer committed Mar 13, 2024
1 parent 9ee36b8 commit c5fcac6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 13 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,22 @@ jobs:
run: just clippy
env:
RUST_BACKTRACE: 1
coverage:
name: coverage
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 +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
# token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
fail_ci_if_error: true
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ members = ["contracts/*", "integration", "packages/*"]
resolver = "2"

[workspace.package]
version = "0.0.1"
authors = ["PFC <[email protected]>"]
version = "0.1.1"
authors = [
"Kerber0x <[email protected]>",
"Nahem <[email protected]>",
"PFC <[email protected]>"]
edition = "2021"
rust-version = "1.73.0"
license = "Apache-2.0"
Expand Down
8 changes: 2 additions & 6 deletions contracts/injective-auction-pool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
[package]
name = "injective-auction-pool"
description = "Smart contract that allows for community members to pool together INJ to participate in burn auctions"
authors = [
"Kerber0x <[email protected]>",
"Nahem <[email protected]>",
"PFC <[email protected]>",
]
version = "0.1.0"
authors = { workspace = true }
version = { workspace = true }

edition = { workspace = true }
license = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ clippy:
fmt:
cargo +nightly fmt

coverage:
cargo +nightly tarpaulin
test:
cargo test

Expand Down

0 comments on commit c5fcac6

Please sign in to comment.