Skip to content

Commit

Permalink
Feat(update): Testing and adding scenarios for golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaviral2609 committed Jul 28, 2023
1 parent 2181030 commit b83c562
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
go-lint:
name: Lint Go
runs-on: ubuntu-22.04
env:
LINT_RESULTS: ""
steps:
- name: Adding markdown
run: echo '### Lint Go ✨' >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -80,14 +78,14 @@ jobs:
run: |
echo "- ✔️ Checked out the repository" >> $GITHUB_STEP_SUMMARY
echo "- ✔️ Set up Go with version 1.20 and cached dependencies" >> $GITHUB_STEP_SUMMARY
if [ -n "$LINT_RESULTS" ]; then
echo "- ❌ Go lint check failed" >> $GITHUB_STEP_SUMMARY
echo "::error::Linting issues found. Check the details below." >> $GITHUB_STEP_SUMMARY
echo "$LINT_RESULTS" >> $GITHUB_STEP_SUMMARY
exit 1
else
echo "- ✔️ Go lint check passed" >> $GITHUB_STEP_SUMMARY
echo "::warning::No linting issues found." >> $GITHUB_STEP_SUMMARY
fi
continue-on-error: true
if: always()
Expand Down

0 comments on commit b83c562

Please sign in to comment.