@@ -43,7 +43,9 @@ permissions:
4343 contents : read
4444env :
4545 CACHE_PATH : node_modules
46+ COVERAGE_SUMMARY : ./coverage/coverage-summary.json
4647 HUSKY : 0
48+ PCT : .total.branches.pct + .total.functions.pct + .total.lines.pct + .total.statements.pct
4749 REF : ${{ github.head_ref || github.ref }}
4850 REF_NAME : ${{ github.head_ref || github.ref_name }}
4951 SHA : ${{ github.event.pull_request.head.sha || github.sha }}
@@ -253,9 +255,6 @@ jobs:
253255 - 20
254256 env :
255257 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
256- COVERAGE_SUMMARY : ./coverage/coverage-summary.json
257- NODE_NO_WARNINGS : 1
258- PCT : .total.branches.pct + .total.functions.pct + .total.lines.pct + .total.statements.pct
259258 steps :
260259 - id : checkout
261260 name : Checkout ${{ env.REF_NAME }}
@@ -286,9 +285,6 @@ jobs:
286285 with :
287286 data : ${{ env.COVERAGE_SUMMARY }}
288287 filter : " '${{ env.PCT }}'"
289- - id : pct
290- name : Print coverage points
291- run : echo ${{ steps.coverage.outputs.result }}
292288 - id : report
293289 name : Upload report
294290@@ -331,6 +327,47 @@ jobs:
331327 if : fromJson(steps.coverage.outputs.result) != 400
332328 name : Coverage threshold failure (${{ steps.coverage.outputs.result }})
333329 run : yarn test:cov:reports
330+ test-bun :
331+ needs : preflight
332+ runs-on : ubuntu-latest
333+ strategy :
334+ fail-fast : false
335+ matrix :
336+ bun-version :
337+ - canary
338+ - latest
339+ - 1.2.0
340+ steps :
341+ - id : checkout
342+ name : Checkout ${{ env.REF_NAME }}
343+ 344+ with :
345+ persist-credentials : false
346+ ref : ${{ env.REF }}
347+ - id : bun
348+ name : Setup Bun (${{ matrix.bun-version }})
349+ 350+ with :
351+ bun-version : ${{ matrix.bun-version }}
352+ - id : cache
353+ name : Restore dependencies cache
354+ 355+ with :
356+ key : ${{ needs.preflight.outputs.cache-key }}
357+ path : ${{ env.CACHE_PATH }}
358+ - id : test
359+ name : Run tests
360+ run : yarn test:cov --coverage.thresholds.100=false
361+ - id : coverage
362+ name : Get coverage points
363+ uses :
flex-development/[email protected] 364+ with :
365+ data : ${{ env.COVERAGE_SUMMARY }}
366+ filter : " '${{ env.PCT }}'"
367+ - id : coverage-failure
368+ if : fromJson(steps.coverage.outputs.result) != 400
369+ name : Coverage threshold failure (${{ steps.coverage.outputs.result }})
370+ run : yarn test:cov:reports
334371 artifacts :
335372 needs :
336373 - commitlint
@@ -339,6 +376,7 @@ jobs:
339376 - preflight
340377 - spelling
341378 - test
379+ - test-bun
342380 - typescript
343381 runs-on : ubuntu-latest
344382 steps :
0 commit comments