phpdoc-parser/.github/workflows/backward-compatibility.yml

41 lines
1.0 KiB
YAML
Raw Normal View History

2021-09-16 22:50:50 +02:00
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Backward Compatibility"
on:
pull_request:
push:
branches:
2022-10-06 13:32:30 +02:00
- "1.9.x"
2021-09-16 22:50:50 +02:00
jobs:
backward-compatibility:
name: "Backward Compatibility"
runs-on: "ubuntu-latest"
timeout-minutes: 30
steps:
- name: "Checkout"
2022-03-07 01:03:13 +01:00
uses: actions/checkout@v3
2021-09-16 22:50:50 +02:00
with:
fetch-depth: 0
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "7.4"
- name: "Install dependencies"
run: "composer install --no-dev --no-interaction --no-progress --no-suggest"
- name: "allow composer plugins"
2022-08-09 09:05:54 +02:00
run: "composer config --no-plugins --global allow-plugins.ocramius/package-versions true"
2021-09-16 22:50:50 +02:00
- name: "Install BackwardCompatibilityCheck"
run: "composer global require --dev roave/backward-compatibility-check"
- name: "Check"
run: "$(composer global config bin-dir --absolute)/roave-backward-compatibility-check"