Adjust the fmt test to reveal output

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-09-03 02:34:55 -06:00
committed by Christian Goll
parent 59f187bf5e
commit 8462a30a68

View File

@@ -42,7 +42,9 @@ jobs:
- name: Vet Warewulf code (golang ${{ matrix.go-version }})
run: make vet
- name: Check Warewulf code for formatting (golang ${{ matrix.go-version }})
run: test "$(make -s fmt | wc -l)" == 0
run: |
make -s fmt | tee /tmp/fmt-output
test "$(wc -l </tmp/fmt-output)" == 0
- name: Check for dead Warewulf code (golang ${{ matrix.go-version }})
run: make deadcode
- name: Run the test suite (golang ${{ matrix.go-version }})