wip: Upgrade astroport messaging to v5 #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install stable toolchain | |
run: cargo make install-stable | |
- 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 |