Skip to content

Commit be2b1ee

Browse files
committed
ci(pr): Add report status job for properly setting PR status checks
1 parent a83dd3d commit be2b1ee

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

.github/workflows/verify.yml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,20 @@ jobs:
6262
json-summary-path: ../../coverage/packages/${{ matrix.package }}/coverage-summary.json
6363
json-final-path: ../../coverage/packages/${{ matrix.package }}/coverage-final.json
6464

65-
66-
# - name: Upload use-long-press coverage reports to Codecov
67-
# uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3
68-
# with:
69-
# token: ${{ secrets.CODECOV_TOKEN }}
70-
# directory: ./coverage/packages/use-long-press
71-
# flags: hooks,use-long-press
72-
#
73-
# - name: Upload use-double-tap coverage reports to Codecov
74-
# uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3
75-
# with:
76-
# token: ${{ secrets.CODECOV_TOKEN }}
77-
# directory: ./coverage/packages/use-double-tap
78-
# flags: hooks,use-double-tap
79-
#
80-
# - name: Upload react-interval-hook coverage reports to Codecov
81-
# uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3
82-
# with:
83-
# token: ${{ secrets.CODECOV_TOKEN }}
84-
# directory: ./coverage/packages/react-interval-hook
85-
# flags: hooks,react-interval-hook
65+
report-status:
66+
name: Report PR verification status
67+
runs-on: ubuntu-latest
68+
needs: verify-pr
69+
if: always() # Ensures it runs even if a matrix job fails
70+
steps:
71+
- name: Determine overall status
72+
run: |
73+
if [[ "${{ needs.verify-pr.result }}" == "success" ]]; then
74+
echo "All matrix jobs passed ✅"
75+
exit 0
76+
else
77+
echo "Some matrix jobs failed ❌"
78+
exit 1
79+
fi
80+
outputs:
81+
status: ${{ job.status }}

0 commit comments

Comments
 (0)