Skip to content

Commit

Permalink
Merge pull request #664 from lcobucci/renovate/lcobucci-coding-standa…
Browse files Browse the repository at this point in the history
…rd-10.x

Update dependency lcobucci/coding-standard to v10
  • Loading branch information
lcobucci committed Mar 20, 2023
2 parents cdd1519 + ac11dcf commit 044ef23
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 37 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/backwards-compatibility.yml
@@ -0,0 +1,43 @@
name: "Backwards compatibility check"

on:
pull_request:

jobs:
bc-check:
name: "Backwards compatibility check"

runs-on: "ubuntu-latest"

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

- name: "Install PHP"
uses: "shivammathur/setup-php@2.24.0"
with:
php-version: "8.2"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get composer cache directory
id: composer-cache
run: echo "composer_cache_dir=$(composer global config cache-files-dir)" >> $GITHUB_OUTPUT

- name: "Cache dependencies"
uses: "actions/cache@v3.3.1"
with:
path: ${{ steps.composer-cache.outputs.composer_cache_dir }}
key: "php-8.2-bc-break-check-${{ hashFiles('.github/workflows/backwards-compatibility.yml') }}"
restore-keys: "php-8.2-bc-break-check-"

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

- name: "BC Check"
run: |
~/.composer/vendor/bin/roave-backward-compatibility-check --from=${{ github.event.pull_request.base.sha }} --format=github-actions
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
dependencies:
- "locked"
php-version:
- "8.1"
- "8.2"
operating-system:
- "ubuntu-latest"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutation-tests.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
dependencies:
- "locked"
php-version:
- "8.1"
- "8.2"
operating-system:
- "ubuntu-latest"

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/phpunit.yml
Expand Up @@ -18,7 +18,6 @@ jobs:
- "locked"
- "development"
php-version:
- "8.1"
- "8.2"
operating-system:
- "ubuntu-latest"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
dependencies:
- "locked"
php-version:
- "8.1"
- "8.2"
operating-system:
- "ubuntu-latest"

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -10,12 +10,12 @@
}
],
"require": {
"php": "~8.1.0 || ~8.2.0",
"php": "~8.2.0",
"psr/clock": "^1.0"
},
"require-dev": {
"infection/infection": "^0.26",
"lcobucci/coding-standard": "^9.0",
"lcobucci/coding-standard": "^10.0.0",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.10.7",
"phpstan/phpstan-deprecation-rules": "^1.1.3",
Expand Down
66 changes: 35 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 044ef23

Please sign in to comment.