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

Version 0.3.0 #54

Merged
merged 20 commits into from
Feb 13, 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
61 changes: 0 additions & 61 deletions .circleci/config.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/Basic.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/Release.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/cc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

name: Conventional commit check
on:
pull_request:
workflow_dispatch:

# This workflow denies a push on a pull request if all pushed commits are not following
# the conventional commits standard.

jobs:
conv-commit:
name: Enforce conventional commit messages
runs-on: ubuntu-latest
steps:
- name: Checkout pull request
uses: actions/checkout@v3

- name: Check all commit messages for adherence
uses: bilalshaikh42/[email protected]
29 changes: 29 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check for errors
on:
pull_request:
workflow_dispatch:

env:
RUSTFLAGS: -D warnings

jobs:
cargo-check:
name: Cargo check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Set up Go 1.21.6
uses: actions/setup-go@v5
with:
go-version: "1.21.6"

- name: Install cargo make
uses: davidB/rust-cargo-make@v1

- name: Install stable Rust
run: cargo make install-stable

- name: Check
run: cargo make check
38 changes: 38 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Coverage

on:
push:
branches:
- master
pull_request:

env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Set up Go 1.21.6
uses: actions/setup-go@v5
with:
go-version: "1.21.6"

- name: Install cargo make
uses: davidB/rust-cargo-make@v1

- name: Install stable Rust
run: cargo make install-stable

- name: Run test coverage
run: cargo make coverage-lcov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/coverage/lcov.info
34 changes: 34 additions & 0 deletions .github/workflows/licenses.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check licenses and sources
on:
pull_request:
workflow_dispatch:

env:
RUSTFLAGS: -D warnings

jobs:
cargo-deny:
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans licenses sources

# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install cargo make
uses: davidB/rust-cargo-make@v1

- name: Install stable toolchain
run: cargo make install-stable

- name: run cargo deny
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
39 changes: 39 additions & 0 deletions .github/workflows/lint-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Linting and formatting
on:
pull_request:
workflow_dispatch:

env:
RUSTFLAGS: -D warnings

jobs:
lint-and-format:
name: Lint and check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Set up Go 1.21.6
uses: actions/setup-go@v5
with:
go-version: "1.21.6"

- name: Install cargo make
uses: davidB/rust-cargo-make@v1

- name: Install nightly toolchain
run: cargo make install-nightly

- name: Run cargo clippy
run: cargo make clippy-check

- name: Run cargo fmt
run: cargo make format-check

- name: Run cargo machete
run: cargo make machete-check

# TODO: Enable when project more mature
# - name: Lint todo comments
# run: cargo make todo-check
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Suite
on:
pull_request:
workflow_dispatch:

env:
RUSTFLAGS: -D warnings

jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Set up Go 1.21.6
uses: actions/setup-go@v5
with:
go-version: "1.21.6"

- name: Install cargo make
uses: davidB/rust-cargo-make@v1

- name: Install stable toolchain
run: cargo make install-stable

- name: Run unit tests
run: cargo make unit-test
env:
RUST_BACKTRACE: 1

# No integration tests yet
# - name: Run integration tests
# run: cargo make integration-test
# env:
# RUST_BACKTRACE: 1
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2024-02-13

### Changed

- Bump dependencies
- `osmosis-std` to 0.22.0
- `test-tube` to 0.5.0
- `osmosis-test-tube` to 22.1.0
- `prost` to 0.12
- `cosmrs` to 0.15
- `cosmwasm-std` to 1.5.0

### Added

- Helper fn `instantiate_astroport` now instantiates the `astroport-incentives` contract.
- NB: Astroport incentives contract API is only in `astroport` package version >= 3.11 which contains unreleased changes. Be careful when integrating with Astroport as they don't follow SemVer.

## [0.2.3] - 2023-11-01

### Changed
Expand Down
Loading
Loading