1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00
wezterm/.github/workflows/fmt.yml
2022-01-17 15:14:32 -07:00

52 lines
1.1 KiB
YAML

name: fmt
on:
pull_request:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/*"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
push:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/**"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
check-code-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
profile: "minimal"
toolchain: "nightly"
override: true
components: rustfmt
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
- name: Build
run: |
source $HOME/.cargo/env
cargo +nightly fmt --all -- --check