From 4ef93e16192f260ffff048d4e78c5ba6647717a8 Mon Sep 17 00:00:00 2001 From: Chirantan Ekbote Date: Wed, 30 Mar 2022 18:11:40 +0900 Subject: [PATCH] Add `cargo check` to CI This makes sure that the code builds successfully. commit-id:d71c5b75 --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2775ec367..f211b5278 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}