Skip to content

Commit 713d833

Browse files
authored
Merge pull request #44 from cyl3x/feat/bc-check
feat: bc-check
2 parents 324bef9 + 4705064 commit 713d833

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/bc-check.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: BC check
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
bc-check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: '0'
14+
fetch-tags: '1'
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.2'
20+
coverage: none
21+
22+
- name: Install dependencies
23+
run: composer install
24+
25+
- name: Install dependencies
26+
run: composer require --dev roave/backward-compatibility-check:^8.13
27+
28+
- name: Run bc-check
29+
run: composer bc-check -- --format=github-actions --from="origin/${{ github.base_ref }}"

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
"strobotti/php-jwk": "^1.4"
3333
},
3434
"require-dev": {
35+
"async-aws/dynamo-db": "~3.2",
3536
"friendsofphp/php-cs-fixer": "^3.16",
3637
"infection/infection": "^0.29",
3738
"nyholm/psr7": "^1.7.0",
3839
"nyholm/psr7-server": "^1.0",
3940
"php-http/curl-client": "^2.2",
4041
"phpstan/phpstan": "^1.10.14",
4142
"phpunit/phpunit": "^10.5",
42-
"async-aws/dynamo-db": "~3.2",
43-
"symfony/polyfill-uuid": "^1.31",
44-
"symfony/http-client": ">=6.4.16"
43+
"symfony/http-client": ">=6.4.16",
44+
"symfony/polyfill-uuid": "^1.31"
4545
},
4646
"suggest": {
4747
"async-aws/dynamo-db": "For using the DynamoDBRepository"
@@ -69,6 +69,7 @@
6969
"phpunit",
7070
"php-cs-fixer fix",
7171
"phpstan analyse"
72-
]
72+
],
73+
"bc-check": "vendor/bin/roave-backward-compatibility-check"
7374
}
7475
}

0 commit comments

Comments
 (0)