Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/bc-check.yml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down