Skip to content

Commit

Permalink
feature/IVYPORTAL-16678-SPIKE-Setup-Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nhthinh-axonivy committed Jan 10, 2025
1 parent d076bdd commit 45a01d8
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
VALIDATE_CSS: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_DOCKERFILE: true
LOG_LEVEL: DEBUG
LOG_LEVEL: INFO
LOG_FILE: super-linter.log
REPORT_OUTPUT: true
CREATE_LOG_FILE: true
Expand All @@ -55,19 +55,29 @@ jobs:
if: always()
run: |
echo "=== Checking for linter output files ==="
find /tmp/lint-results -name "super-linter.log" || true
find ${{ github.workspace }} -name "super-linter.log" || true
echo "=== Contents of /tmp/lint-results ==="
ls -la /tmp/lint-results || true
echo "=== Contents of ${{ github.workspace }} ==="
ls -la ${{ github.workspace }} || true
- name: Check Log File Existence
if: always()
run: |
LOG_FILE="${{ github.workspace }}/super-linter.log"
if [ -f "$LOG_FILE" ]; then
echo "Log file exists: $LOG_FILE"
else
echo "Log file does not exist: $LOG_FILE"
fi
- name: Process Linter Results
if: always()
run: |
mkdir -p /tmp/lint-results
# Check directly in /tmp/lint-results
echo "=== Checking /tmp/lint-results ==="
LOG_FILE="/tmp/lint-results/super-linter.log"
# Check directly in the workspace
echo "=== Checking ${{ github.workspace }} ==="
LOG_FILE="${{ github.workspace }}/super-linter.log"
if [ -f "$LOG_FILE" ]; then
echo "Found log file: $LOG_FILE"
Expand Down Expand Up @@ -95,6 +105,16 @@ jobs:
# Ensure we have a linter.log file even if empty
touch /tmp/lint-results/linter.log
- name: Check Log File Existence
if: always()
run: |
LOG_FILE="${{ github.workspace }}/super-linter.log"
if [ -f "$LOG_FILE" ]; then
echo "Log file exists: $LOG_FILE"
else
echo "Log file does not exist: $LOG_FILE"
fi
- name: Upload Linter Report
if: always()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 45a01d8

Please sign in to comment.