diff --git a/.github/workflows/dev_module_build.yml b/.github/workflows/dev_module_build.yml index a78dce9231..2bc48c0c19 100644 --- a/.github/workflows/dev_module_build.yml +++ b/.github/workflows/dev_module_build.yml @@ -202,12 +202,12 @@ 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 )) @@ -215,7 +215,7 @@ jobs: else echo "::group::📂 Linting directory ✅: $dir" fi - + report_out_warning=$(echo $output | jq '.warning') report_out_error=$(echo $output | jq '.error') @@ -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" @@ -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