1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-18 19:01:36 +03:00
wezterm/.github/workflows/fmt.yml

33 lines
585 B
YAML
Raw Normal View History

name: fmt
on:
pull_request:
branches:
- main
2023-03-16 09:42:34 +03:00
paths:
- "**/*.rs"
- ".github/workflows/fmt.yml"
push:
branches:
- main
2023-03-16 09:42:34 +03:00
paths:
- "**/*.rs"
- ".github/workflows/fmt.yml"
jobs:
check-code-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Install Rust"
uses: dtolnay/rust-toolchain@nightly
with:
2022-01-18 01:14:32 +03:00
components: rustfmt
- name: Build
run: |
source $HOME/.cargo/env
cargo +nightly fmt --all -- --check