From 4519ee076446a5cd368a6dab31fa44174592d4a2 Mon Sep 17 00:00:00 2001 From: Jan-Niklas Burfeind Date: Fri, 14 Jun 2024 10:44:37 +0200 Subject: [PATCH] ci: Enable code formatting verification upon pushes and pull requests. --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/ci_format_code.yml | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/ci_format_code.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dae354c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,9 @@ +name: CI +'on': + push: null + pull_request: null +env: + CARGO_TERM_COLOR: always +jobs: + format_code: + uses: ./.github/workflows/ci_format_code.yml diff --git a/.github/workflows/ci_format_code.yml b/.github/workflows/ci_format_code.yml new file mode 100644 index 0000000..32da4e3 --- /dev/null +++ b/.github/workflows/ci_format_code.yml @@ -0,0 +1,11 @@ +name: CI Format +'on': + workflow_call: null +jobs: + fmt: + runs-on: ubuntu-latest + steps: + - name: Checkout (GitHub) + uses: actions/checkout@v4 + - name: Verify Code is formatted + run: cargo fmt --workspace -- --check