Skip to content

Commit df9b1ed

Browse files
committed
CI: update
1 parent d98ffd3 commit df9b1ed

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

.github/workflows/main.yaml

+25-9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
cache-version: "1"
1616
composer-version: "v1"
1717
composer-install: "composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-stable"
18+
coverage: "none"
1819

1920
jobs:
2021
qa:
@@ -51,7 +52,8 @@ jobs:
5152
with:
5253
php-version: "${{ matrix.php-version }}"
5354
extensions: "${{ env.extensions }}"
54-
tools: "composer:${{ env.composer-version }} "
55+
tools: "composer:${{ env.composer-version }}, cs2pr"
56+
coverage: "${{ env.coverage }}"
5557

5658
- name: "Setup problem matchers for PHP"
5759
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
@@ -110,7 +112,8 @@ jobs:
110112
with:
111113
php-version: "${{ matrix.php-version }}"
112114
extensions: "${{ env.extensions }}"
113-
tools: "composer:${{ env.composer-version }} "
115+
tools: "composer:${{ env.composer-version }}"
116+
coverage: "${{ env.coverage }}"
114117

115118
- name: "Setup problem matchers for PHP"
116119
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
@@ -142,12 +145,12 @@ jobs:
142145
operating-system: ["ubuntu-latest"]
143146
composer-args: [ "" ]
144147
include:
145-
- php-version: "7.4"
148+
- php-version: "7.2"
146149
operating-system: "ubuntu-latest"
147150
composer-args: "--prefer-lowest"
148151
- php-version: "8.0"
149152
operating-system: "ubuntu-latest"
150-
composer-args: "--ignore-platform-reqs"
153+
composer-args: ""
151154
fail-fast: false
152155

153156
continue-on-error: "${{ matrix.php-version == '8.0' }}"
@@ -176,7 +179,8 @@ jobs:
176179
with:
177180
php-version: "${{ matrix.php-version }}"
178181
extensions: "${{ env.extensions }}"
179-
tools: "composer:${{ env.composer-version }} "
182+
tools: "composer:${{ env.composer-version }}"
183+
coverage: "${{ env.coverage }}"
180184

181185
- name: "Setup problem matchers for PHP"
182186
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
@@ -195,12 +199,16 @@ jobs:
195199
- name: "Install dependencies"
196200
run: "${{ env.composer-install }} ${{ matrix.composer-args }}"
197201

198-
- name: "Setup problem matchers for PHPUnit"
199-
run: 'echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"'
200-
201202
- name: "Tests"
202203
run: "make tests"
203204

205+
- name: "Upload test output"
206+
if: ${{ failure() }}
207+
uses: actions/upload-artifact@v2
208+
with:
209+
name: output
210+
path: tests/**/output
211+
204212
tests-code-coverage:
205213
name: "Tests with code coverage"
206214
runs-on: "${{ matrix.operating-system }}"
@@ -237,7 +245,8 @@ jobs:
237245
with:
238246
php-version: "${{ matrix.php-version }}"
239247
extensions: "${{ env.extensions }}"
240-
tools: "composer:${{ env.composer-version }} "
248+
tools: "composer:${{ env.composer-version }}"
249+
coverage: "${{ env.coverage }}"
241250

242251
- name: "Setup problem matchers for PHP"
243252
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
@@ -259,6 +268,13 @@ jobs:
259268
- name: "Tests"
260269
run: "make coverage-clover"
261270

271+
- name: "Upload test output"
272+
if: ${{ failure() }}
273+
uses: actions/upload-artifact@v2
274+
with:
275+
name: output
276+
path: tests/**/output
277+
262278
- name: "Coveralls.io"
263279
env:
264280
CI_NAME: github

0 commit comments

Comments
 (0)