Skip to content

Commit b83f33a

Browse files
authored
Merge branch 'master' into arrayable-token
2 parents 1eccc08 + a2afeb8 commit b83f33a

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@ jobs:
1616
lint:
1717
name: "Lint"
1818
runs-on: "ubuntu-latest"
19-
2019
strategy:
2120
fail-fast: false
2221
matrix:
2322
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
24-
25-
continue-on-error: ${{ matrix.php-version == '8.1' }}
26-
2723
steps:
2824
- uses: "actions/checkout@v2"
2925
- uses: "shivammathur/setup-php@v2"
3026
with:
31-
php-version: "7.4"
27+
php-version: "${{ matrix.php-version }}"
3228
coverage: "none"
3329
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
3430
tools: "composer:v2"
@@ -43,47 +39,50 @@ jobs:
4339
- uses: "actions/checkout@v2"
4440
- uses: "shivammathur/setup-php@v2"
4541
with:
46-
php-version: "7.4"
42+
php-version: "latest"
4743
coverage: "none"
4844
ini-values: "memory_limit=-1"
4945
tools: "composer:v2"
5046
- uses: "ramsey/composer-install@v1"
5147
- name: "Check coding standards"
5248
run: "./vendor/bin/phpcs src --standard=psr2 -sp --colors"
5349

50+
coverage:
51+
name: "Coverage"
52+
runs-on: "ubuntu-latest"
53+
steps:
54+
- uses: "actions/checkout@v2"
55+
- uses: "shivammathur/setup-php@v2"
56+
with:
57+
php-version: "latest"
58+
coverage: "pcov"
59+
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
60+
tools: "composer"
61+
- name: "Prepare for tests"
62+
run: "mkdir -p build/logs"
63+
- uses: "ramsey/composer-install@v1"
64+
- name: "Run unit tests"
65+
run: "./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml --coverage-text"
66+
- name: "Publish coverage report to Codecov"
67+
uses: "codecov/codecov-action@v1"
68+
5469
unit-tests:
5570
name: "Unit Tests"
5671
runs-on: "ubuntu-latest"
57-
continue-on-error: ${{ matrix.experimental }}
5872
strategy:
5973
fail-fast: false
6074
matrix:
61-
php-version:
62-
- "5.6"
63-
- "7.0"
64-
- "7.1"
65-
- "7.2"
66-
- "7.3"
67-
- "7.4"
68-
- "8.0"
69-
- "8.1"
70-
experimental:
71-
- false
72-
75+
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
7376
steps:
7477
- uses: "actions/checkout@v2"
7578
- uses: "shivammathur/setup-php@v2"
7679
with:
7780
php-version: "${{ matrix.php-version }}"
78-
coverage: "pcov"
81+
coverage: "none"
7982
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
80-
tools: "composer:v2"
83+
tools: "composer"
8184
- name: "Prepare for tests"
8285
run: "mkdir -p build/logs"
8386
- uses: "ramsey/composer-install@v1"
84-
with:
85-
composer-options: "${{ matrix.composer-options }}"
8687
- name: "Run unit tests"
87-
run: "./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml"
88-
- name: "Publish coverage report to Codecov"
89-
uses: "codecov/codecov-action@v1"
88+
run: "./vendor/bin/phpunit --colors=always"

0 commit comments

Comments
 (0)