We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd6f9de commit e862d99Copy full SHA for e862d99
1 file changed
README.md
@@ -15,20 +15,26 @@ Set up a Codee Formatter & Analyser on Linux and Windows runners.
15
16
## Usage
17
18
+One can use this action in the following way to check that `codee format` does not change source code:
19
+
20
```yaml
21
jobs:
- test:
- runs-on: ${{ matrix.os }}
22
+ format:
23
+ runs-on: [ubuntu-latest, windows-latest]
24
strategy:
25
fail-fast: false
- matrix:
- os: [ubuntu-latest, windows-latest, ubuntu-24.04-arm]
26
27
steps:
28
- - uses: foxtran/setup-codee@v1
+ - uses: actions/checkout@v4
29
+ - uses: foxtran/setup-codee@v1
30
31
+ - name: Run Fortran formatter
32
+ run: |
33
+ codee format . --verbose
34
- - run: |
- codee format --help
35
+ - name: Check for uncommitted changes
36
37
+ git diff --exit-code
38
```
39
40
0 commit comments