Skip to content

Commit 087f77b

Browse files
committed
add coverage workflow
1 parent c27957a commit 087f77b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/coverage.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Coverage
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, macOS-latest]
11+
php-version: ['8.2', '8.3']
12+
dependency-versions: ['lowest', 'highest']
13+
name: 'Coverage'
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php-version }}
21+
extensions: mbstring, intl
22+
coverage: xdebug
23+
- name: Composer
24+
uses: "ramsey/composer-install@v3"
25+
with:
26+
dependency-versions: ${{ matrix.dependencies }}
27+
- name: BlackBox
28+
run: php blackbox.php
29+
env:
30+
ENABLE_COVERAGE: 'true'
31+
BLACKBOX_SET_SIZE: 1
32+
- uses: codecov/codecov-action@v4
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)