Skip to content

Commit

Permalink
Update paths to linter reports
Browse files Browse the repository at this point in the history
  • Loading branch information
chudilka1 committed Nov 27, 2024
1 parent 0569164 commit aa19bc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/actions/golangci-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ runs:
with:
version: v1.62.2
only-new-issues: true
args: --out-format colored-line-number,checkstyle:${{ steps.set-working-directory.outputs.golangci-lint-working-directory }}_golangci-lint-report.xml -v
args: --out-format colored-line-number,checkstyle:golangci-lint-report.xml -v
working-directory: ${{ steps.set-working-directory.outputs.golangci-lint-working-directory }}
- name: Print lint report artifact
if: failure()
shell: bashc
run: cat ./${{ inputs.go-directory }}/${{ steps.set-working-directory.outputs.golangci-lint-working-directory }}_golangci-lint-report.xml
run: cat ./${{ inputs.go-directory }}/golangci-lint-report.xml
- name: Store lint report artifact
if: always()
uses: actions/upload-artifact@v4.4.3
with:
name: golangci-lint-report-${{ inputs.go-directory }}
# The ./ is needed to preserve the valid pattern for the artifact path
path: ./${{ inputs.go-directory }}/${{ inputs.go-directory }}_golangci-lint-report.xml
path: ./${{ inputs.go-directory }}/golangci-lint-report.xml
2 changes: 1 addition & 1 deletion .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ jobs:
fi
# Check and assign paths for lint reports
if [ -d "golangci-lint-report" ]; then
if [[ -d "golangci-lint-report"* ]]; then
sonarqube_lint_report_paths=$(find -type f -name 'golangci-lint-report.xml' -printf "%p,")
else
sonarqube_lint_report_paths=""
Expand Down

0 comments on commit aa19bc7

Please sign in to comment.