Skip to content

Commit

Permalink
Add bc check
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Oct 23, 2023
1 parent 598544a commit 39f365a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/backwards-compatibility-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://github.com/Roave/BackwardCompatibilityCheck

name: "Backwards Compatibility Check"

on:
pull_request: ~

jobs:
backwards-compatibility-check:
name: "Backwards Compatibility Check"

runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Setup PHP, with composer and extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
coverage: "none"

- name: "Install tool"
run: "composer global require roave/backward-compatibility-check"

- name: "Check for BC breaks"
run: "~/.composer/vendor/bin/roave-backward-compatibility-check --from=origin/1.12.x --format=github-actions"

0 comments on commit 39f365a

Please sign in to comment.