Skip to content

Commit

Permalink
fix: include cosmwasm check-docs in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Aug 6, 2024
1 parent 269ecd2 commit 0dabf8a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchains
- name: Install Rust nightly toolchain with rustfmt
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust stable toolchain with clippy
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- uses: actions-rs/clippy-check@v1
Expand All @@ -48,9 +49,9 @@ jobs:
uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
- name: Run Lint Checks (fmt, clippy, taplo)
run: make lint
- name: Spell Check with Typos
uses: crate-ci/typos@master
with:
config: ./.github/typos.toml
- name: Run make lint
run: make lint
22 changes: 5 additions & 17 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,17 @@ jobs:
- name: Run cargo hack
run: make check-features

doc_all_features:
check-docs:
name: Check Documentations
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features --release

doc_no_default_features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-default-features --release
components: rust-docs
- name: Run cargo docs
run: make check-docs

test-stable:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ lint: ## Lint the code using rustfmt, clippy and whitespace lints.
$(MAKE) clippy
$(MAKE) lint-toml
$(MAKE) -C ./cosmwasm lint $@
typos --config $(CURDIR)/.github/typos.toml
bash ./ci/code-quality/whitespace-lints.sh

fmt: ## Format the code using nightly rustfmt.
Expand All @@ -28,6 +27,9 @@ clippy: ## Lint the code using clippy.
lint-toml: ## Lint the TOML files using taplo.
taplo fmt --check

typos: ## Check for typos in the code.
typos --config $(CURDIR)/.github/typos.toml

check-features: ## Check that project compiles with all combinations of features.
cargo hack check --workspace --feature-powerset --exclude-features default

Expand Down

0 comments on commit 0dabf8a

Please sign in to comment.