Skip to content

Commit eea18b9

Browse files
authored
Merge branch '3.x' into backport-libxml-php8-compat
2 parents fa3d390 + 13f305f commit eea18b9

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.github/workflows/tests.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
name: Tests PHP ${{ matrix.php }}
8+
runs-on: ubuntu-latest
9+
continue-on-error: ${{ matrix.experimental }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php: [7.3, 7.4, 8.0]
14+
experimental: [false]
15+
include:
16+
- php: 8.0
17+
analysis: true
18+
- php: 8.1
19+
experimental: true
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Set up PHP ${{ matrix.php }}
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
coverage: xdebug
30+
31+
- name: Install dependencies with Composer
32+
uses: ramsey/composer-install@v1
33+
34+
- name: Coding standards
35+
if: matrix.analysis
36+
run: vendor/bin/phpcs
37+
38+
- name: Static analysis
39+
if: matrix.analysis
40+
run: vendor/bin/phpstan
41+
42+
- name: Tests
43+
run: vendor/bin/phpunit --coverage-clover clover.xml
44+
45+
- name: Upload coverage results to Coveralls
46+
if: matrix.analysis
47+
env:
48+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
run: |
50+
composer require php-coveralls/php-coveralls -n -W
51+
vendor/bin/php-coveralls --coverage_clover=clover.xml -v

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"psr/container": "^1.0"
3939
},
4040
"require-dev": {
41-
"squizlabs/php_codesniffer": "^2.5",
41+
"squizlabs/php_codesniffer": "^3.6.0",
4242
"phpunit/phpunit": "^4.0"
4343
},
4444
"provide": {

0 commit comments

Comments
 (0)