Skip to content

Commit 69bdadd

Browse files
committed
Setup more complete testing solution
1 parent ceef7e6 commit 69bdadd

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,24 @@ on:
77
branches: [main]
88

99
jobs:
10-
tests:
10+
unit-testing:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
16-
- name: Test
17-
run: ./vendor/bin/phpunit
14+
- uses: actions/checkout@v3
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: 8.3
19+
extensions: xdebug
20+
tools: composer:2
21+
- name: Setup problem matchers for PHP
22+
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
23+
- name: Setup problem matchers for PHPUnit
24+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
25+
- name: Composer
26+
run: composer install
27+
- name: Unit Testing
28+
env:
29+
XDEBUG_MODE: coverage
30+
run: ./tools/phpunit/vendor/bin/phpunit

0 commit comments

Comments
 (0)