forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (33 loc) · 1.07 KB
/
backward-compatibility.yml
File metadata and controls
43 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Backward Compatibility"
on:
pull_request:
push:
branches:
- "master"
env:
COMPOSER_ROOT_VERSION: "1.0.x-dev"
jobs:
backward-compatibility:
name: "Backward Compatibility"
runs-on: "ubuntu-latest"
timeout-minutes: 30
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 0
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.0"
- name: "Install dependencies"
run: "composer install --no-dev --no-interaction --no-progress --no-suggest"
- name: "Install BackwardCompatibilityCheck"
run: |
composer global config minimum-stability dev
composer global config prefer-stable true
composer global require --dev ondrejmirtes/backward-compatibility-check:^5.0.7
- name: "Check"
run: "$(composer global config bin-dir --absolute)/roave-backward-compatibility-check"