Skip to content

Merge pull request #168 from hartwork/dependabot/cargo/regex-1.11.0 #575

Merge pull request #168 from hartwork/dependabot/cargo/regex-1.11.0

Merge pull request #168 from hartwork/dependabot/cargo/regex-1.11.0 #575

# This file is part of the rust-for-it project.
#
# Copyright (c) 2023 Sebastian Pipping <[email protected]>
# 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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Enforce rustfmt-clean code
run: |-
cargo fmt
git diff --exit-code # non-empty diff fails CI