diff --git a/.github/workflows/bc-check.yml b/.github/workflows/bc-check.yml new file mode 100644 index 0000000..76e0b61 --- /dev/null +++ b/.github/workflows/bc-check.yml @@ -0,0 +1,26 @@ +name: bc-check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + backwards-compatibility-check: + name: Backwards Compatibility Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: "Install PHP" + uses: shivammathur/setup-php@v2 + with: + php-version: "8.0" + - name: "Install dependencies" + run: "composer install" + - name: "Check for BC breaks" + run: "vendor/bin/roave-backward-compatibility-check --format=github-actions" diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 54a0aaa..12d798c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -32,7 +32,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, fileinfo, sodium coverage: xdebug - name: Setup problem matchers diff --git a/composer.json b/composer.json index 7aa46f7..5b27f09 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,8 @@ "nunomaduro/collision": "^5.10|^6.0", "nunomaduro/larastan": "^1.0", "orchestra/testbench": "^6.6|^7.0", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9.5", + "roave/backward-compatibility-check": "^6.4|^7.0" }, "autoload": { "psr-4": {