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}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Format w/ Carg'
|
- name: 'audit dependencies'
|
||||||
image: rust:1.88
|
image: rust:1.88
|
||||||
commands:
|
commands:
|
||||||
- cargo install cargo-audit
|
- cargo install cargo-audit
|
||||||
|
|
|
@ -3,7 +3,7 @@ when:
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Format w/ Carg'
|
- name: 'Check code'
|
||||||
image: rust:1.88
|
image: rust:1.88
|
||||||
commands:
|
commands:
|
||||||
- cargo check
|
- cargo check
|
||||||
|
|
|
@ -6,9 +6,14 @@ steps:
|
||||||
- name: 'Format w/ Cargo'
|
- name: 'Format w/ Cargo'
|
||||||
image: rust:1.88
|
image: rust:1.88
|
||||||
commands:
|
commands:
|
||||||
|
- rustup component add rustfmt
|
||||||
- cargo fmt
|
- cargo fmt
|
||||||
|
|
||||||
- name: 'Push formatted'
|
- name: 'Push formatted'
|
||||||
image: appleboy/drone-git-push
|
image: appleboy/drone-git-push
|
||||||
settings:
|
settings:
|
||||||
remote_name: origin
|
remote_name: origin
|
||||||
branch: ${CI_COMMIT_BRANCH}
|
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