Skip to content

Commit 672990b

Browse files
authored
Merge pull request #58 from pascalheidmann/master
Add github action to test against PHP 7.2 - 8.2
2 parents 866ae32 + 26e5ee8 commit 672990b

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Quality Assurance
3+
on:
4+
push:
5+
paths:
6+
- src/**/*.php
7+
- composer.json
8+
- .github/workflows/quality-assurance.yml
9+
branches:
10+
- master
11+
- main
12+
pull_request:
13+
paths:
14+
- src/**/*.php
15+
- composer.json
16+
- .github/workflows/quality-assurance.yml
17+
branches:
18+
- master
19+
- main
20+
21+
jobs:
22+
phpunit:
23+
name: PHPUnit tests on ${{ matrix.php }} ${{ matrix.composer-flags }}
24+
runs-on: ubuntu-latest
25+
continue-on-error: ${{ matrix.experimental }}
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
30+
composer-flags: [ '' ]
31+
experimental: [false]
32+
phpunit-flags: [ '--coverage-text' ]
33+
steps:
34+
- uses: actions/checkout@v3
35+
- uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php }}
38+
coverage: pcov
39+
tools: composer:v2
40+
- run: composer update --no-progress ${{ matrix.composer-flags }}
41+
- run: composer test

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test": "phpspec run"
3535
},
3636
"require-dev": {
37-
"phpspec/phpspec": "^4.3",
38-
"leanphp/phpspec-code-coverage": "^4.2"
37+
"phpspec/phpspec": ">=4.3",
38+
"friends-of-phpspec/phpspec-code-coverage": ">=4.3"
3939
}
4040
}

phpspec.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ suites:
55
psr4_prefix: League\Pipeline
66

77
extensions:
8-
LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension: ~
8+
FriendsOfPhpSpec\PhpSpec\CodeCoverage\CodeCoverageExtension: ~
99

1010
code_coverage:
1111
format:

0 commit comments

Comments
 (0)