From e4f90ade8492f15f909df7833141490df3e1a2fc Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Mon, 15 Sep 2025 17:16:59 +0200 Subject: [PATCH] Update example usage --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0ac7625..f5e19e2 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,11 @@ Set up a Codee Formatter & Analyser on Linux and Windows runners. ## Usage +One can use this action in the following way to check that `codee format` does not change source code: + ```yaml jobs: - test: + format: runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -25,10 +27,16 @@ jobs: os: [ubuntu-latest, windows-latest, ubuntu-24.04-arm] steps: - - uses: foxtran/setup-codee@v1 + - uses: actions/checkout@v4 + - uses: foxtran/setup-codee@v1 + + - name: Run Fortran formatter + run: | + codee format . --verbose - - run: | - codee format --help + - name: Check for uncommitted changes + run: | + git diff --exit-code ```