Add `cargo check` to CI
This makes sure that the code builds successfully. commit-id:d71c5b75
This commit is contained in:
parent
5e4bf02014
commit
4ef93e1619
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue