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 }}