Skip to content

Commit

Permalink
Merge pull request #45 from rdohms/task/php8-compat
Browse files Browse the repository at this point in the history
Bump to PHP8
  • Loading branch information
rdohms authored Jul 28, 2021
2 parents 65b2ac7 + ac63719 commit 7d75750
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
labels:
- "Dependencies"
versioning-strategy: auto
40 changes: 40 additions & 0 deletions .github/workflows/check-cs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check Codestyle

on:
push:
branches:
- master
pull_request:
branches:
- "*"
# Allow manually triggering the workflow.
workflow_dispatch:

jobs:
fix-style:
name: Fix Code Style
timeout-minutes: 15
runs-on: ubuntu-latest
env:
COMPOSER_NO_INTERACTION: 1

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none
tools: composer, cs2pr

- name: Install dependencies
run: |
composer install --prefer-dist --no-suggest --no-progress
- name: Check Code Style
run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml

- name: Show PHPCS results in PR
run: cs2pr ./phpcs-report.xml
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
php: [7.4]
php: [7.4, 8.0]
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tests/_reports
vendor
/.phpcs.cache
/.phpunit.result.cache
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],

"require": {
"php": "^7.4",
"php": "^7.4 || ^8.0",
"doctrine/annotations": "^1.13"
},

Expand Down
4 changes: 2 additions & 2 deletions composer.lock

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

0 comments on commit 7d75750

Please sign in to comment.