mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-30 06:23:46 +03:00
31 lines
507 B
YAML
31 lines
507 B
YAML
{{{{raw}}}}
|
|
name: Format
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- dev
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install rustfmt with stable toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- run: cargo fmt --manifest-path=Cargo.toml --all -- --check
|
|
{{{{/raw}}}}
|