Skip to content

Commit 7ca7188

Browse files
committed
work on Github workflow until it works...
1 parent 0442c09 commit 7ca7188

File tree

1 file changed

+10
-73
lines changed

1 file changed

+10
-73
lines changed

.github/workflows/php.yml

+10-73
Original file line numberDiff line numberDiff line change
@@ -36,96 +36,33 @@ jobs:
3636
tests:
3737
name: Tests
3838

39-
runs-on: ${{ matrix.os }}
40-
41-
env:
42-
PHP_EXTENSIONS: dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter, :apcu, :imagick
43-
PHP_INI_VALUES: memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
44-
45-
strategy:
46-
fail-fast: false
47-
matrix:
48-
os:
49-
- ubuntu-latest
50-
- windows-latest
51-
52-
php-version:
53-
- "7.3"
54-
- "7.4"
55-
- "8.0"
56-
- "8.1"
57-
58-
coverage-driver:
59-
- "pcov"
60-
- "xdebug"
61-
- "xdebug3"
62-
63-
dependencies:
64-
- lowest
65-
- highest
66-
67-
exclude:
68-
- php-version: "8.0"
69-
coverage-driver: "xdebug"
70-
71-
- php-version: "8.1"
72-
coverage-driver: "xdebug"
39+
runs-on: ubuntu-latest
7340

7441
steps:
75-
- name: Configure git to avoid issues with line endings
76-
if: matrix.os == 'windows-latest'
77-
run: git config --global core.autocrlf false
78-
7942
- name: Checkout
8043
uses: actions/checkout@v3
8144

82-
- name: Install PHP with extensions
83-
uses: shivammathur/setup-php@v2
84-
with:
85-
php-version: ${{ matrix.php-version }}
86-
coverage: ${{ matrix.coverage-driver }}
87-
extensions: ${{ env.PHP_EXTENSIONS }}
88-
ini-values: ${{ env.PHP_INI_VALUES }}
89-
tools: none
90-
91-
- name: Install lowest dependencies with composer
92-
if: matrix.dependencies == 'lowest'
93-
run: php ./tools/composer update --no-ansi --no-interaction --no-progress --prefer-lowest
94-
95-
- name: Install highest dependencies with composer
96-
if: matrix.dependencies == 'highest'
97-
run: php ./tools/composer update --no-ansi --no-interaction --no-progress
98-
9945
- name: Run tests with phpunit/phpunit
100-
run: vendor/bin/phpunit --coverage-clover=coverage.xml
46+
run: composer tests
10147

10248
- name: Send code coverage report to Codecov.io
10349
uses: codecov/codecov-action@v2
10450
with:
10551
token: 56f489e7-c92b-4851-bfc6-5fa9a93f0426
106-
# tests:
107-
# name: Tests
108-
#
109-
# runs-on: ubuntu-latest
110-
#
111-
# steps:
112-
# - name: Run test suite
113-
# uses: codecov/codecov-action@v2
114-
# run: composer tests
115-
# with:
116-
# token: 56f489e7-c92b-4851-bfc6-5fa9a93f0426
117-
# files: reports/clover.xml
118-
# verbose: true
52+
files: reports/clover.xml
53+
11954

12055
quality:
12156
name: QualityAssurance
12257

12358
runs-on: ubuntu-latest
12459

12560
steps:
126-
- name: Check CS-Fixer
127-
run: composer fix-cs:check
61+
- uses: actions/checkout@v3
62+
63+
- name: Check CS-Fixer
64+
run: composer fix-cs:check
12865

12966

130-
- name: Check PHPStan
131-
run: composer phpstan-gitlab
67+
- name: Check PHPStan
68+
run: composer phpstan-gitlab

0 commit comments

Comments
 (0)