diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6603a59da..b864c48ca 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,8 @@ updates: schedule: interval: "weekly" commit-message: - prefix: "dependabot" + prefix: "ci" pull-request-branch-name: separator: "/" + labels: + - "no changelog" diff --git a/.github/workflows/rust-code-quality.yml b/.github/workflows/rust-code-quality.yml index 6f9d843cd..37081d2a0 100644 --- a/.github/workflows/rust-code-quality.yml +++ b/.github/workflows/rust-code-quality.yml @@ -4,8 +4,8 @@ name: Assess Rust code quality on: push: paths: - - '.github/workflows/rust-code-quality.yml' - - 'offchain/**' + - ".github/workflows/rust-code-quality.yml" + - "offchain/**" jobs: assess-rust-code-quality: @@ -33,9 +33,6 @@ jobs: - name: Install protoc run: sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev - - name: Update rust - run: rustup update - - name: Install cargo-machete run: cargo install cargo-machete continue-on-error: true @@ -43,8 +40,14 @@ jobs: - name: Analyze dependencies run: cargo machete . + - name: Install rustfmt + run: rustup component add rustfmt + - name: Check code format run: cargo fmt --all -- --check + - name: Install clippy + run: rustup component add clippy + - name: Run linter run: cargo clippy -- -A clippy::module_inception diff --git a/offchain/rust-toolchain.toml b/offchain/rust-toolchain.toml new file mode 100644 index 000000000..7e8f0a9aa --- /dev/null +++ b/offchain/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.72"