fix formatter ci
This commit is contained in:
parent
3eeb5fd4b3
commit
985b1d3810
3 changed files with 7 additions and 2 deletions
|
@ -3,7 +3,7 @@ when:
|
|||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
||||
steps:
|
||||
- name: 'Format w/ Carg'
|
||||
- name: 'audit dependencies'
|
||||
image: rust:1.88
|
||||
commands:
|
||||
- cargo install cargo-audit
|
||||
|
|
|
@ -3,7 +3,7 @@ when:
|
|||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
||||
steps:
|
||||
- name: 'Format w/ Carg'
|
||||
- name: 'Check code'
|
||||
image: rust:1.88
|
||||
commands:
|
||||
- cargo check
|
||||
|
|
|
@ -6,9 +6,14 @@ steps:
|
|||
- name: 'Format w/ Cargo'
|
||||
image: rust:1.88
|
||||
commands:
|
||||
- rustup component add rustfmt
|
||||
- cargo fmt
|
||||
|
||||
- name: 'Push formatted'
|
||||
image: appleboy/drone-git-push
|
||||
settings:
|
||||
remote_name: origin
|
||||
branch: ${CI_COMMIT_BRANCH}
|
||||
commit: true
|
||||
commit_message: "[skip ci] chore: automated code formatting"
|
||||
author_name: "Woodpecker CI"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue