Skip to content

Commit 10404c1

Browse files
authored
Merge pull request #9 from PHPOffice/roaveBC
Github Action : Roave BC Check
2 parents f0f8cad + b430b87 commit 10404c1

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup PHP
2626
uses: shivammathur/setup-php@v2
2727
with:
28-
php-version: 7.2
28+
php-version: 8.1
2929
extensions: dom, xml
3030
coverage: xdebug
3131
- name: Create directory public/coverage
@@ -38,8 +38,7 @@ jobs:
3838
- name: Create directory public/docs
3939
run: mkdir ./public/docs
4040
- name: Install PhpDocumentor
41-
## Support PHP 7.2
42-
run: wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0/phpDocumentor.phar && chmod +x phpDocumentor.phar
41+
run: wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar
4342
- name: Build Documentation
4443
run: ./phpDocumentor.phar run -d ./src -t ./public/docs
4544

.github/workflows/php.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,14 @@ jobs:
103103
run: |
104104
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
105105
chmod +x php-coveralls.phar
106-
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv
106+
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv
107+
108+
roave-backwards-compatibility-check:
109+
name: Roave Backwards Compatibility Check
110+
runs-on: ubuntu-latest
111+
steps:
112+
- uses: actions/checkout@v4
113+
with:
114+
fetch-depth: 0
115+
- name: "Check for BC breaks"
116+
run: docker run -u $(id -u) -v $(pwd):/app nyholm/roave-bc-check-ga

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
"license": "MIT",
88
"autoload": {
99
"psr-4": {
10-
"PhpOffice\\Math\\": "src/Math/",
10+
"PhpOffice\\Math\\": "src/Math/"
11+
}
12+
},
13+
"autoload-dev": {
14+
"psr-4": {
1115
"Tests\\PhpOffice\\Math\\": "tests/Math/"
1216
}
1317
},

docs/changes/0.2.0.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 0.2.0
2+
3+
## Enhancements
4+
5+
- N/A
6+
7+
## Bug fixes
8+
9+
- N/A
10+
11+
## Miscellaneous
12+
13+
- Github Action : Roave BC Check by [@Progi1984](https://github/Progi1984) in [#9](https://github.com/PHPOffice/Math/pull/9)

roave-bc-check.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
ignoreErrors:
3+
# 0.1 has not autoload-dev
4+
- '#\[BC\] REMOVED: Class Tests\\PhpOffice\\Math\\.+ has been deleted#'

0 commit comments

Comments
 (0)