Skip to content

Commit

Permalink
Merge pull request #32 from leviy/master_LPD-12026
Browse files Browse the repository at this point in the history
Support PHP version 8.0
  • Loading branch information
tlsvda committed Feb 1, 2022
2 parents 56d7e05 + 7a8d33e commit 9f7f9c1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test
on: push

jobs:
test:
test-php7_2:
runs-on: ubuntu-18.04
strategy:
matrix:
Expand Down Expand Up @@ -31,3 +31,32 @@ jobs:

- name: Run tests
run: make check
test-php8:
runs-on: ubuntu-18.04
strategy:
matrix:
prefer: [ "prefer-stable", "prefer-lowest" ]
steps:
- name: checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}-${{ matrix.prefer }}-
restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-
- name: Composer Install
run: composer update --${{ matrix.prefer }} --no-interaction --no-progress --no-ansi

- name: Run tests
run: make check
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.2||^8.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"escapestudios/symfony2-coding-standard": "^3.6",
"phpmd/phpmd": "^2.9",
Expand Down

0 comments on commit 9f7f9c1

Please sign in to comment.