Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/dev_module_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,20 @@ jobs:
# cd "$dir" || { echo "::error::Failed to access directory $dir"; exit 1; }

cd "$dir" || { echo "::error::Failed to access directory $dir"; continue; }

# Run linter with multiple formats

output=$(golangci-lint run --out-format=json 2>/dev/null | jq '{warning: .Report.Warnings, error: .Report.Error}' || true)
find_errors=$(echo $output | jq '.error | select(.!=null)' | wc -l)

# Track errors
if [ $find_errors -ne 0 ]; then
error_count=$(( error_count + 1 ))
echo "::group::📂 Linting directory ❌: $dir"
else
echo "::group::📂 Linting directory ✅: $dir"
fi

report_out_warning=$(echo $output | jq '.warning')
report_out_error=$(echo $output | jq '.error')

Expand All @@ -226,7 +226,7 @@ jobs:
report+="---\n"

cd - &>/dev/null

if [ $find_errors -ne 0 ]; then
echo -e "⚠️ Warnings:\n$report_out_warning"
echo -e "❌ Errors:\n$report_out_error\n"
Expand Down Expand Up @@ -533,6 +533,14 @@ jobs:
run: |
task run -v

- uses: actions/upload-artifact@v4
if: always()
with:
name: resources_from_failed_tests
retention-days: 2
path: /tmp/e2e_failed__*
if-no-files-found: ignore

- name: Cleanup E2E resources on cancel
if: always() && steps.e2e-tests.outcome == 'cancelled'
timeout-minutes: 60
Expand Down
Loading