diff --git a/.cargo/config.toml b/.cargo/config.toml index feaf5fec86..91e53515a4 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,6 +1,7 @@ [alias] stacks-node = "run --package stacks-node --" fmt-stacks = "fmt -- --config group_imports=StdExternalCrate,imports_granularity=Module" +# If updating these args, be sure to update the args in .github/workflows/clippy.yml clippy-stacks = "clippy -p libstackerdb -p stacks-signer -p pox-locking -p clarity -p libsigner -p stacks-common --no-deps --tests --all-features -- -D warnings" # Uncomment to improve performance slightly, at the cost of portability diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index e9fd90e9a2..d38fb92b24 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -20,8 +20,22 @@ jobs: name: Clippy Check runs-on: ubuntu-latest steps: + - name: Checkout the latest code + id: git_checkout + uses: actions/checkout@v3 + - name: Define Rust Toolchain + id: define_rust_toolchain + run: echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV + - name: Setup Rust Toolchain + id: setup_rust_toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ env.RUST_TOOLCHAIN }} + components: clippy - name: Clippy id: clippy uses: actions-rs/clippy-check@v1 with: - alias: "clippy-stacks" \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} + # If updating these args, be sure to update clippy-stacks in .cargo/config.toml + args: -p libstackerdb -p stacks-signer -p pox-locking -p clarity -p libsigner -p stacks-common --no-deps --tests --all-features -- -D warnings \ No newline at end of file