From ea64c377acca0adc15057b9129ba57636a6eb0d3 Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:21:54 +0100 Subject: [PATCH] Combine staticcheck and upload step --- .github/workflows/runonce.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/runonce.yml b/.github/workflows/runonce.yml index a1eacf8..f630fd2 100644 --- a/.github/workflows/runonce.yml +++ b/.github/workflows/runonce.yml @@ -35,6 +35,7 @@ jobs: run: | go install github.com/reviewdog/reviewdog/cmd/reviewdog@latest + # See: https://staticcheck.io - name: Install staticcheck run: | go install honnef.co/go/tools/cmd/staticcheck@latest @@ -58,19 +59,9 @@ jobs: run: go vet ./... # Running the linter requires likwid.h, which gets downloaded in the build step - - name: Run Static Analysis with staticcheck + - name: Run Static Analysis with staticcheck and Upload Report with reviewdog run: | - staticcheck -f json ./... > staticcheck.json || true - - - name: Upload staticcheck Report - uses: actions/upload-artifact@v4 - with: - name: staticcheck-json - path: staticcheck.json - - - name: Report staticcheck results via reviewdog - run: | - reviewdog -f=staticcheck -name=staticcheck -reporter=github-pr-check -filter-mode=nofilter < staticcheck.json|| true + staticcheck ./... | reviewdog -f=staticcheck -reporter=github-check -filter-mode=nofilter env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}