Skip to content

Commit

Permalink
Github Action : Roave BC Check
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Sep 25, 2023
1 parent f0f8cad commit b430b87
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.2
php-version: 8.1
extensions: dom, xml
coverage: xdebug
- name: Create directory public/coverage
Expand All @@ -38,8 +38,7 @@ jobs:
- name: Create directory public/docs
run: mkdir ./public/docs
- name: Install PhpDocumentor
## Support PHP 7.2
run: wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0/phpDocumentor.phar && chmod +x phpDocumentor.phar
run: wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar
- name: Build Documentation
run: ./phpDocumentor.phar run -d ./src -t ./public/docs

Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,14 @@ jobs:
run: |
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
chmod +x php-coveralls.phar
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv
roave-backwards-compatibility-check:
name: Roave Backwards Compatibility Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Check for BC breaks"
run: docker run -u $(id -u) -v $(pwd):/app nyholm/roave-bc-check-ga
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"license": "MIT",
"autoload": {
"psr-4": {
"PhpOffice\\Math\\": "src/Math/",
"PhpOffice\\Math\\": "src/Math/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\PhpOffice\\Math\\": "tests/Math/"
}
},
Expand Down
13 changes: 13 additions & 0 deletions docs/changes/0.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 0.2.0

## Enhancements

- N/A

## Bug fixes

- N/A

## Miscellaneous

- Github Action : Roave BC Check by [@Progi1984](https://github/Progi1984) in [#9](https://github.com/PHPOffice/Math/pull/9)
4 changes: 4 additions & 0 deletions roave-bc-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parameters:
ignoreErrors:
# 0.1 has not autoload-dev
- '#\[BC\] REMOVED: Class Tests\\PhpOffice\\Math\\.+ has been deleted#'

0 comments on commit b430b87

Please sign in to comment.