Skip to content

Commit

Permalink
Merge pull request #2 from oraichain/feat/aggregate-swap
Browse files Browse the repository at this point in the history
Feat/aggregate swap
  • Loading branch information
meomeocoj authored Mar 15, 2024
2 parents b2fee42 + 4ad0964 commit 8bf77c7
Show file tree
Hide file tree
Showing 16 changed files with 1,466 additions and 244 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/cov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Code Coverage

on: [pull_request, workflow_dispatch]

jobs:
checks:
name: check-coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Generate code coverage
run: |
cargo tarpaulin --skip-clean --ignore-tests --exclude-files src/bin/schema.rs --frozen --engine llvm --out xml
- name: Produce the coverage report
uses: insightsengineering/coverage-action@v2
with:
# Path to the Cobertura XML report.
path: ./cobertura.xml
# Minimum total coverage, if you want to the
# workflow to enforce it as a standard.
# This has no effect if the `fail` arg is set to `false`.
threshold: 90
# Fail the workflow if the minimum code coverage
# reuqirements are not satisfied.
fail: true
# Publish the rendered output as a PR comment
publish: true
# Create a coverage diff report.
diff: true
# Branch to diff against.
# Compare the current coverage to the coverage
# determined on this branch.
diff-branch: master
# This is where the coverage reports for the
# `diff-branch` are stored.
# Branch is created if it doesn't already exist'.
# diff-storage: _xml_coverage_reports
coverage-summary-title: "Code Coverage Summary"
new-uncovered-statements-failure: true
# new-uncovered-statements-failure: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Build results
/target
/schema
/artifacts
/build

# Cargo+Git helper file (https://github.com/rust-lang/cargo/blob/0.44.1/src/cargo/sources/git/utils.rs#L320-L327)
.cargo-ok
Expand All @@ -14,3 +16,5 @@
# IDEs
*.iml
.idea
.env

Loading

0 comments on commit 8bf77c7

Please sign in to comment.