Skip to content

Enforce rustfmt-clean code #539

Enforce rustfmt-clean code

Enforce rustfmt-clean code #539

# This file is part of the rust-for-it project.
#
# Copyright (c) 2023 Sebastian Pipping <sebastian@pipping.org>
# SPDX-License-Identifier: MIT
name: Enforce rustfmt-clean code
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:
jobs:
enforce_rustfmt:
name: Enforce rustfmt-clean code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Enforce rustfmt-clean code
run: |-
cargo fmt
git diff --exit-code # non-empty diff fails CI