Skip to content

Merge pull request #291 from marvelousufelix/feat/dispute-resolution-… #200

Merge pull request #291 from marvelousufelix/feat/dispute-resolution-…

Merge pull request #291 from marvelousufelix/feat/dispute-resolution-… #200

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Security audit
run: |
cargo install cargo-audit
cargo audit
- name: Test
run: cargo test --workspace
- name: Regression tests
run: cargo test --workspace regression_tests
- name: Code coverage
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --workspace --out Xml --output-dir coverage
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: ./coverage/cobertura.xml
fail_ci_if_error: true