From 9a569d1642d2931a2a568d1825f8681241f53d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Thu, 9 Dec 2021 16:11:54 +0900 Subject: [PATCH] ci: Enable rust linting --- .github/workflows/rust.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d14f60b92..f4e52caae 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,6 +3,7 @@ on: [push] jobs: test: + name: Test runs-on: ubuntu-latest container: image: projectserum/build:v0.18.0 @@ -17,3 +18,17 @@ jobs: - run: solana-keygen new -o id.json - run: yarn install --frozen-lockfile - run: anchor test + + lint: + name: Lint + runs-on: ubuntu-latest + container: + image: projectserum/build:v0.18.0 + env: + RUSTUP_HOME: "/root/.rustup" + FORCE_COLOR: 1 + + steps: + - uses: actions/checkout@v2 + - run: cargo check + - run: cargo clippy -- -D warnings