Skip to content

Commit 1507e9b

Browse files
authored
fix: golangcilint report generation (#97)
* fix: report gen * chore: trigger * chore: trigger * fix: wrong flags * fix: wrong flag * fix: report path * chore: lint
1 parent 9f9b8c9 commit 1507e9b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,17 @@ jobs:
4747
cd ${{ matrix.dir }}
4848
nix develop -c golangci-lint run ./... \
4949
--config ../.golangci.yml \
50-
--output.checkstyle.path="../${{ env.REPORT_PATH }}"
50+
--output.checkstyle.path="${{ env.REPORT_PATH }}"
5151
5252
- name: Print lint report on failure
5353
if: failure()
54-
run: cat "${{ env.REPORT_PATH }}"
54+
run: |
55+
if [ -f "${{ env.REPORT_PATH }}" ]; then
56+
cat "${{ env.REPORT_PATH }}"
57+
else
58+
echo "No report file found at: ${{ env.REPORT_PATH }}"
59+
ls -la "$(dirname "${{ env.REPORT_PATH }}")"
60+
fi
5561
5662
- name: Upload lint report
5763
if: always()

0 commit comments

Comments
 (0)