mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +02:00
37 lines
737 B
YAML
37 lines
737 B
YAML
name: Format Rust
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
paths:
|
|
- '.github/workflows/format-rust.yml'
|
|
- 'plugins/src/**'
|
|
- "**/Cargo.lock"
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
paths:
|
|
- '.github/workflows/format-rust.yml'
|
|
- 'plugins/src/**'
|
|
- "**/Cargo.lock"
|
|
|
|
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 |