Skip to content

fix(pool_manager): fix lp shares minting on xyk pool #116

fix(pool_manager): fix lp shares minting on xyk pool

fix(pool_manager): fix lp shares minting on xyk pool #116

name: Tests and Lints
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.80.0
target: wasm32-unknown-unknown
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: "0.15.0"
args: '--locked -- --test-threads 4'
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.80.0
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Generate Schema
uses: actions-rs/cargo@v1
with:
command: schema
args: --locked
- name: Schema Changes
# fails if any changes not committed
run: git diff --exit-code schema