You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tauri-plugins-workspace/.github/workflows/format-rust.yml

37 lines
737 B

name: Format Rust
on:
push:
branches:
- dev
paths:
- '.github/workflows/format-rust.yml'
- 'plugins/src/**'
- "**/Cargo.toml"
pull_request:
branches:
- dev
paths:
- '.github/workflows/format-rust.yml'
- 'plugins/src/**'
- "**/Cargo.toml"
jobs:
format:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install rustfmt with nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check