Skip to content

Commit

Permalink
Merge pull request #32 from chadicus/master
Browse files Browse the repository at this point in the history
Allow newer versions of PHP
  • Loading branch information
chadicus authored Dec 19, 2022
2 parents 916798e + d428002 commit 2303035
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 23 deletions.
3 changes: 0 additions & 3 deletions .coveralls.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PHP Composer

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPCS
run: composer run-script lint
- name: Run PHPUnit
run: composer run-script test
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
"sort-packages": true
},
"require": {
"php": "^7.0"
"php": ">=7.0"
},
"suggest": {
"subjective-php/util-exceptions": "Offers utilty classes for working with exceptions."
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^6.5",
"squizlabs/php_codesniffer": "^3.2"
},
Expand Down

0 comments on commit 2303035

Please sign in to comment.