Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 700acbe

Browse files
Merge pull request #2 from michael-rubel/bc-check
Add B/C check
2 parents dae91e3 + 7e900fe commit 700acbe

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.github/workflows/bc-check.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: bc-check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
backwards-compatibility-check:
13+
name: Backwards Compatibility Check
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: "Install PHP"
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: "8.0"
23+
- name: "Install dependencies"
24+
run: "composer install"
25+
- name: "Check for BC breaks"
26+
run: "vendor/bin/roave-backward-compatibility-check --format=github-actions"

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: shivammathur/setup-php@v2
3333
with:
3434
php-version: ${{ matrix.php }}
35-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
35+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, fileinfo, sodium
3636
coverage: xdebug
3737

3838
- name: Setup problem matchers

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"nunomaduro/collision": "^5.10|^6.0",
2828
"nunomaduro/larastan": "^1.0",
2929
"orchestra/testbench": "^6.6|^7.0",
30-
"phpunit/phpunit": "^9.5"
30+
"phpunit/phpunit": "^9.5",
31+
"roave/backward-compatibility-check": "^6.4|^7.0"
3132
},
3233
"autoload": {
3334
"psr-4": {

0 commit comments

Comments
 (0)