Skip to content

Commit 92ee908

Browse files
committed
chore: set proper commits in coverage job
1 parent da4b962 commit 92ee908

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,18 @@ jobs:
273273
with:
274274
name: tests-coverage-cache-${{ github.run_number }}-22
275275
path: .
276+
# Note: see comment in the compile job
277+
- name: Set base and head commits
278+
run: |
279+
if [ "${{github.event_name}}" == "push" ]; then
280+
echo "NX_BASE=origin/main~1" >> "$GITHUB_ENV"
281+
echo "NX_HEAD=origin/main" >> "$GITHUB_ENV"
282+
else
283+
echo "NX_BASE=origin/main" >> "$GITHUB_ENV"
284+
echo "NX_HEAD=HEAD" >> "$GITHUB_ENV"
285+
fi
276286
- name: Merge coverage (Delta)
277287
run: npm run test-merge-coverage:ci:affected
278-
- name: Check coverage
279-
run: find . | grep coverage-final
280288
- name: Report Coverage
281289
uses: codecov/codecov-action@v5
282290
env:

0 commit comments

Comments
 (0)