Skip to content

Commit

Permalink
Merge pull request #6 from tvlooy/php81
Browse files Browse the repository at this point in the history
Add PHP 8.1
  • Loading branch information
tvlooy authored Dec 1, 2021
2 parents a0ddd9b + 7ceec26 commit abbc8a3
Show file tree
Hide file tree
Showing 5 changed files with 284 additions and 139 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.2, 7.3, 7.4, 8.0]
php: [7.4, 8.0, 8.1]

steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php }}
- name: Display PHP version
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
all: lint phpstan phpunit
| xdg-open tests/_reports/coverage/index.html

test: lint phpstan phpunit
test: lint phpstan phpunit-nocoverage

lint:
| find src -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )

phpunit:
| php -dzend_extension=xdebug ./vendor/bin/phpunit

phpunit-nocoverage:
| php ./vendor/bin/phpunit --no-coverage

debug:
| DEBUG_DUMPS=1 php -dzend_extension=xdebug ./vendor/bin/phpunit

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This is a Combell shared-hosting API client implementation. The goal is to provide a client library that makes it
easy for you to interact with the Combell shared hosting public API.

[![Build Status](https://travis-ci.org/Intracto/combell-api.svg?branch=master)](https://travis-ci.org/Intracto/combell-api)
[![Run tests](https://github.com/Intracto/combell-api/actions/workflows/run-test.yml/badge.svg)](https://github.com/Intracto/combell-api/actions/workflows/run-test.yml)

## Current status

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"psr-4": {"TomCan\\CombellApi\\": "src/"}
},
"require": {
"php": ">=7.2",
"php": ">=7.4",
"ext-json": "*",
"guzzlehttp/guzzle": "~6.0"
},
"require-dev": {
"phpstan/phpstan": "^0.12.82",
"phpstan/phpstan": "^1.2",
"phpunit/phpunit": "^8.5",
"symfony/phpunit-bridge": "^5.2"
}
Expand Down
Loading

0 comments on commit abbc8a3

Please sign in to comment.