Skip to content

Commit

Permalink
ci: Enable rust linting
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Dec 9, 2021
1 parent 3cd4968 commit 9a569d1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: [push]

jobs:
test:
name: Test
runs-on: ubuntu-latest
container:
image: projectserum/build:v0.18.0
Expand All @@ -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

0 comments on commit 9a569d1

Please sign in to comment.