Skip to content

Commit 0560b8e

Browse files
authored
Merge branch 'main' into main
2 parents c56377c + 4983e36 commit 0560b8e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/lint-test.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -264,19 +264,18 @@ jobs:
264264
run: |
265265
set -e # Exit on error
266266
267-
# Current coverage is already uploaded in this workflow
268-
echo "Downloading current coverage..."
269-
if ! gh run download "${{ github.run_id }}" --name=consolidated-code-coverage --dir=/tmp/current-coverage; then
270-
echo "❌ Failed to download current coverage artifacts"
271-
exit 1
272-
fi
267+
# Use the locally consolidated coverage file (no download needed!)
268+
echo "Using locally consolidated coverage..."
269+
mkdir -p .github/outputs
273270
274-
if [[ ! -f /tmp/current-coverage/coverage.txt ]]; then
275-
echo "❌ Current coverage file not found"
271+
if [[ ! -f consolidated-coverage/coverage.txt || ! -s consolidated-coverage/coverage.txt ]]; then
272+
echo "❌ Consolidated coverage file not found or empty"
276273
exit 1
277274
fi
278275
279-
mv /tmp/current-coverage/coverage.txt .github/outputs/new-coverage.txt
276+
# Copy (don't move) so the artifact upload still has the original
277+
cp consolidated-coverage/coverage.txt .github/outputs/new-coverage.txt
278+
echo "✅ Current coverage prepared from local file"
280279
281280
# Download baseline coverage from main (failure here is acceptable)
282281
echo "Downloading baseline coverage..."

0 commit comments

Comments
 (0)