Skip to content

Commit eabf0d4

Browse files
authored
Merge branch 'main' into add-more-workflows
2 parents 5d21e68 + f61d7b6 commit eabf0d4

File tree

18 files changed

+9
-10
lines changed

18 files changed

+9
-10
lines changed

.github/workflows/lint-test.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
- uses: actions/checkout@v4
193193

194194
- name: Setup Go
195-
uses: actions/setup-go@v5
195+
uses: actions/setup-go@v6
196196
with:
197197
go-version: 'stable'
198198

@@ -277,19 +277,18 @@ jobs:
277277
run: |
278278
set -e # Exit on error
279279
280-
# Current coverage is already uploaded in this workflow
281-
echo "Downloading current coverage..."
282-
if ! gh run download "${{ github.run_id }}" --name=consolidated-code-coverage --dir=/tmp/current-coverage; then
283-
echo "❌ Failed to download current coverage artifacts"
284-
exit 1
285-
fi
280+
# Use the locally consolidated coverage file (no download needed!)
281+
echo "Using locally consolidated coverage..."
282+
mkdir -p .github/outputs
286283
287-
if [[ ! -f /tmp/current-coverage/coverage.txt ]]; then
288-
echo "❌ Current coverage file not found"
284+
if [[ ! -f consolidated-coverage/coverage.txt || ! -s consolidated-coverage/coverage.txt ]]; then
285+
echo "❌ Consolidated coverage file not found or empty"
289286
exit 1
290287
fi
291288
292-
mv /tmp/current-coverage/coverage.txt .github/outputs/new-coverage.txt
289+
# Copy (don't move) so the artifact upload still has the original
290+
cp consolidated-coverage/coverage.txt .github/outputs/new-coverage.txt
291+
echo "✅ Current coverage prepared from local file"
293292
294293
# Download baseline coverage from main (failure here is acceptable)
295294
echo "Downloading baseline coverage..."
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)