Skip to content

Commit

Permalink
.github: split workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Mar 20, 2024
1 parent 1d0db06 commit 316a455
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ jobs:
run: cd node && go test -v -timeout 5m -race -ldflags '-extldflags "-Wl,--allow-multiple-definition" ' ./...

# Run Rust lints and tests
rust-lint-and-tests:
cw-terra-lint-and-tests:
runs-on: ubuntu-20.04
env:
RUSTFLAGS: -Dwarnings
Expand All @@ -337,7 +337,6 @@ jobs:
manifest:
- cosmwasm/Cargo.toml
- terra/Cargo.toml
- sdk/rust/Cargo.toml
steps:
- name: Check out source
uses: actions/checkout@v3
Expand Down Expand Up @@ -380,6 +379,36 @@ jobs:
- name: Run unit tests
run: cargo test --workspace --locked --manifest-path ${{ matrix.manifest }}

# Run Rust lints and tests
rust-sdk-lint-and-tests:
runs-on: ubuntu-20.04
env:
RUSTFLAGS: -Dwarnings
strategy:
matrix:
manifest:
- cosmwasm/Cargo.toml
- terra/Cargo.toml
- sdk/rust/Cargo.toml
steps:
- name: Check out source
uses: actions/checkout@v3

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
with:
toolchain: stable
components: "clippy,rustfmt"

- name: Run `cargo fmt`
run: cd sdk/rust && cargo fmt --check

- name: Run `cargo clippy`
run: cargo clippy --all-features --all-targets --tests --manifest-path sdk/rust/Cargo.toml

- name: Run `cargo test`
run: cargo test --all-features --all-targets --manifest-path sdk/rust/Cargo.toml

docker:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 316a455

Please sign in to comment.