Merge pull request #160 from hartwork/cargo-update #545
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |