Skip to content

Commit

Permalink
feature/IVYPORTAL-16678-SPIKE-Setup-Linter
Browse files Browse the repository at this point in the history
- update validation rule
- create summary step
  • Loading branch information
nhthinh-axonivy committed Jan 2, 2025
1 parent 1664750 commit 83b044f
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,39 @@ jobs:
env:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: true
VALIDATE_ALL_CODEBASE: false
VALIDATE_JAVA: true
VALIDATE_JAVASCRIPT: true
VALIDATE_JSON: true
VALIDATE_YAML: true
VALIDATE_XML: true
VALIDATE_CSS: true
LINTER_RULES_PATH: ./
REPORT_OUTPUT: true

- name: Upload Linter Report
if: always()
uses: actions/upload-artifact@v4
with:
name: linter-report
path: /tmp/lint-results/

summary:
name: Generate Summary
needs: lint
runs-on: ubuntu-latest
steps:
- name: Download Linter Report
uses: actions/download-artifact@v4
with:
name: linter-report
path: ./linter-report

- name: Display Summary
run: |
if [ -f ./linter-report/linter.log ]; then
echo "### Linter Summary" > $GITHUB_STEP_SUMMARY
grep -E "ERROR|WARNING" ./linter-report/linter.log >> $GITHUB_STEP_SUMMARY
else
echo "### No Linter Issues Found" > $GITHUB_STEP_SUMMARY
fi

0 comments on commit 83b044f

Please sign in to comment.