Skip to content

Commit 8d36d89

Browse files
committed
sync: update 2 files from source repository
1 parent deff5f6 commit 8d36d89

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/fortress-test-matrix.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,16 @@ jobs:
364364
365365
# Process both test failures and build failures
366366
367-
# First handle regular test failures
368-
if grep -oE 'FAIL:.*\(([^)]+)\)' test-failures.txt 2>/dev/null | sed -E 's/.*\(([^):]+)[^)]*\).*/\1/' | sort -u > "$TEMP_PACKAGES"; then
367+
# Extract package names from test failures using a named regex and
368+
# intermediate steps
369+
FAIL_REGEX='FAIL:.*\(([^)]+)\)'
370+
PACKAGE_LINE_REGEX='.*\(([^):]+)[^)]*\).*'
371+
372+
grep -oE "$FAIL_REGEX" test-failures.txt 2>/dev/null > temp-fail-lines.txt
373+
sed -E "s/$PACKAGE_LINE_REGEX/\1/" temp-fail-lines.txt | sort -u > "$TEMP_PACKAGES"
374+
rm temp-fail-lines.txt
375+
376+
if [[ -s "$TEMP_PACKAGES" ]]; then
369377
echo "📦 Found packages with test failures:"
370378
cat "$TEMP_PACKAGES"
371379

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ builds:
3030
# Archives
3131
# ---------------------------
3232
archives:
33-
- id: go-template
33+
- id: go-sanitize
3434
name_template: >-
3535
{{- .ProjectName }}_
3636
{{- .Version }}_

0 commit comments

Comments
 (0)