|
9 | 9 | - "master" |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - code-coverage: |
13 | | - name: "Code Coverage" |
14 | | - |
15 | | - runs-on: "ubuntu-latest" |
16 | | - |
17 | | - strategy: |
18 | | - matrix: |
19 | | - php-version: |
20 | | - - "8.4" |
21 | | - |
22 | | - steps: |
23 | | - - name: "Checkout" |
24 | | - uses: "actions/checkout@v6" |
25 | | - |
26 | | - - name: "Set up PHP" |
27 | | - uses: "shivammathur/setup-php@v2" |
28 | | - with: |
29 | | - coverage: "xdebug" |
30 | | - extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter, iconv" |
31 | | - php-version: "${{ matrix.php-version }}" |
32 | | - |
33 | | - - name: "Set up problem matchers for PHP" |
34 | | - run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\"" |
35 | | - |
36 | | - - name: "Set up problem matchers for phpunit/phpunit" |
37 | | - run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" |
38 | | - |
39 | | - - name: "Determine composer cache directory" |
40 | | - run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" |
41 | | - |
42 | | - - name: "Cache dependencies installed with composer" |
43 | | - uses: "actions/cache@v5" |
44 | | - with: |
45 | | - path: "${{ env.COMPOSER_CACHE_DIR }}" |
46 | | - key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" |
47 | | - restore-keys: "php-${{ matrix.php-version }}-composer-" |
48 | | - |
49 | | - - name: "Install dependencies with composer" |
50 | | - run: "composer install --ansi --no-interaction --no-progress" |
51 | | - |
52 | | - - name: "Collect code coverage from running unit tests with phpunit/phpunit" |
53 | | - env: |
54 | | - XDEBUG_MODE: "coverage" |
55 | | - run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --coverage-text --testsuite=unit" |
| 12 | +# code-coverage: |
| 13 | +# name: "Code Coverage" |
| 14 | +# |
| 15 | +# runs-on: "ubuntu-latest" |
| 16 | +# |
| 17 | +# strategy: |
| 18 | +# matrix: |
| 19 | +# php-version: |
| 20 | +# - "8.4" |
| 21 | +# |
| 22 | +# steps: |
| 23 | +# - name: "Checkout" |
| 24 | +# uses: "actions/checkout@v6" |
| 25 | +# |
| 26 | +# - name: "Set up PHP" |
| 27 | +# uses: "shivammathur/setup-php@v2" |
| 28 | +# with: |
| 29 | +# coverage: "xdebug" |
| 30 | +# extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter, iconv" |
| 31 | +# php-version: "${{ matrix.php-version }}" |
| 32 | +# |
| 33 | +# - name: "Set up problem matchers for PHP" |
| 34 | +# run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\"" |
| 35 | +# |
| 36 | +# - name: "Set up problem matchers for phpunit/phpunit" |
| 37 | +# run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" |
| 38 | +# |
| 39 | +# - name: "Determine composer cache directory" |
| 40 | +# run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" |
| 41 | +# |
| 42 | +# - name: "Cache dependencies installed with composer" |
| 43 | +# uses: "actions/cache@v5" |
| 44 | +# with: |
| 45 | +# path: "${{ env.COMPOSER_CACHE_DIR }}" |
| 46 | +# key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}" |
| 47 | +# restore-keys: "php-${{ matrix.php-version }}-composer-" |
| 48 | +# |
| 49 | +# - name: "Install dependencies with composer" |
| 50 | +# run: "composer install --ansi --no-interaction --no-progress" |
| 51 | +# |
| 52 | +# - name: "Collect code coverage from running unit tests with phpunit/phpunit" |
| 53 | +# env: |
| 54 | +# XDEBUG_MODE: "coverage" |
| 55 | +# run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --coverage-text --testsuite=unit" |
56 | 56 |
|
57 | 57 | coding-standards: |
58 | 58 | name: "Coding Standards" |
|
0 commit comments