Skip to content

Commit e732bb4

Browse files
committed
ci: test out adding bc checks
1 parent 447b882 commit e732bb4

File tree

2 files changed

+41
-9
lines changed

2 files changed

+41
-9
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,38 @@ jobs:
6363
with:
6464
sarif_file: results.sarif
6565

66+
roave-backwards-compatibility-check:
67+
name: "Run BC Checks ${{ matrix.php }}"
68+
runs-on: ubuntu-latest
69+
strategy:
70+
matrix:
71+
php: [ '8.2' ]
72+
steps:
73+
- uses: actions/checkout@v4
74+
with:
75+
fetch-depth: 0
76+
- name: "Install PHP ${{ matrix.php }}"
77+
uses: shivammathur/setup-php@master
78+
with:
79+
php-version: ${{ matrix.php }}
80+
extensions: mbstring,
81+
coverage: xdebug
82+
83+
- name: "Validate composer.json and composer.lock"
84+
run: composer validate --strict
85+
86+
- name: "Setup Composer, install dependencies"
87+
uses: ramsey/composer-install@v3
88+
with:
89+
composer-options: "--prefer-dist --optimize-autoloader"
90+
require-lock-file: "true"
91+
92+
- name: "Install Roave BC check"
93+
run: composer require --dev roave/backward-compatibility-check
94+
95+
- name: "Run Roave BC check"
96+
run: vendor/bin/roave-backward-compatibility-check --format=github-actions
97+
6698
unit-test:
6799
name: "Run Unit Tests ${{ matrix.php }}"
68100
runs-on: ubuntu-latest

composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)