Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to liquidate using flashswap on ekubo #39

Merged
merged 23 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .github/workflows/linters-cargo.yml

This file was deleted.

16 changes: 3 additions & 13 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ jobs:
name: Run linters
uses: ./.github/workflows/linters.yml

rust_build:
name: Build Rust project
uses: ./.github/workflows/rust-build.yml

linters_cargo:
name: Run Cargo linters
uses: ./.github/workflows/linters-cargo.yml
needs: rust_build

coverage:
name: Run coverage
uses: ./.github/workflows/coverage.yml
needs: rust_build
rust:
name: Build, Format, Clippy, Machete, LLVM-Cov, Nextest
uses: ./.github/workflows/rust.yml
28 changes: 0 additions & 28 deletions .github/workflows/rust-build.yml

This file was deleted.

33 changes: 22 additions & 11 deletions .github/workflows/coverage.yml → .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
---
name: Task - Rust Tests & Coverage
name: Task - Format, Clippy, Machete, LLVM-Cov, Nextest

on:
workflow_dispatch:
workflow_call:

jobs:
coverage:
# sadly, for now we have to "rebuild" for the coverage
rust_build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as the cache uses the current rustc version as its cache key
- run: rustup show

- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest

- name: Clean workspace
run: |
cargo llvm-cov clean --workspace

- uses: Swatinem/rust-cache@v2

- name: Install protobuf compiler
Expand All @@ -32,6 +23,26 @@ jobs:
sudo apt-get install -y protobuf-compiler libprotobuf-dev
protoc --version

- name: Build the project
run: |
cargo build --release

- name: Format and clippy
run: |
cargo fmt -- --check
cargo clippy --no-deps -- -D warnings
cargo clippy --tests --no-deps -- -D warnings

- name: Check for unused dependencies
uses: bnjbvr/cargo-machete@main

- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest

- name: Clean workspace
run: |
cargo llvm-cov clean --workspace

- name: Run llvm-cov
run: |
cargo llvm-cov nextest --release --lcov --output-path lcov.info
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ infra/db/password.txt
# Indexer
indexer.log
run_indexer.sh
src/bindings
Loading
Loading