From b279b72e5ee4713f2de75a3a2e02b57bb1b1bf14 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. Co-authored-by: Philipp Caspers --- .github/workflows/ci.yml | 11 +++++++++++ .github/workflows/ci_format_code.yml | 11 +++++++++++ 2 files changed, 22 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..370bfe7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,11 @@ +name: CI +'on': + push: + branches: + - main + 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..e7d1b22 --- /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 -- --check