mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-09-21 11:29:02 +00:00
Add workflow for cargo-fmt
This commit is contained in:
parent
2eb02cbd76
commit
88fc3b2cfb
@ -6,12 +6,14 @@ on:
|
|||||||
- "**/Cargo.toml"
|
- "**/Cargo.toml"
|
||||||
- "**/Cargo.lock"
|
- "**/Cargo.lock"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
audit:
|
audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.3
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/audit-check@v1.2.0
|
- uses: actions-rs/audit-check@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
23
.github/workflows/cargo-fmt.yml
vendored
Normal file
23
.github/workflows/cargo-fmt.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: cargo-fmt
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "**/*.rs"
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
fmt:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
components: rustfmt
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: fmt
|
||||||
|
args: --all -- --check
|
Loading…
Reference in New Issue
Block a user