Add `cargo check` to CI

This makes sure that the code builds successfully.

commit-id:d71c5b75
This commit is contained in:
Chirantan Ekbote 2022-03-30 18:11:40 +09:00 committed by Evan Gray
parent 5e4bf02014
commit 4ef93e1619
1 changed files with 25 additions and 0 deletions

View File

@ -77,3 +77,28 @@ jobs:
go-version: '1.17.5'
- run: make generate && ./lint.sh
- run: cd node && go test -v ./...
# Run rust lints and tests
rust-lint-and-tests:
runs-on: ubuntu-20.04
strategy:
matrix:
manifest:
- terra/Cargo.toml
- sdk/rust/Cargo.toml
steps:
- name: Check out source
uses: actions/checkout@v2
- name: Install stable rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run `cargo check`
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --manifest-path ${{ matrix.manifest }}