diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dbf61cb..75eff0e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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 diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 42d7d97..df807ba 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -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 \ No newline at end of file + 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 diff --git a/composer.json b/composer.json index 4bf7786..615e11c 100644 --- a/composer.json +++ b/composer.json @@ -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/" } }, diff --git a/docs/changes/0.2.0.md b/docs/changes/0.2.0.md new file mode 100644 index 0000000..65becd5 --- /dev/null +++ b/docs/changes/0.2.0.md @@ -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) \ No newline at end of file diff --git a/roave-bc-check.yaml b/roave-bc-check.yaml new file mode 100644 index 0000000..a9e8c3e --- /dev/null +++ b/roave-bc-check.yaml @@ -0,0 +1,3 @@ +parameters: + ignoreErrors: + - '#\[BC\] REMOVED: Class Tests\\PhpOffice\\Math\\[A-Za-Z\]+Test has been deleted#'