Skip to content

Commit

Permalink
Task/update labrador core (#22)
Browse files Browse the repository at this point in the history
* Update to work with php 8.0 and 3.2a core

* move to GH actions

* fix code lint

* remove final from http application
  • Loading branch information
cspray authored Mar 28, 2021
1 parent f2a73db commit 8c7dac7
Show file tree
Hide file tree
Showing 17 changed files with 1,436 additions and 1,006 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'Unit Testing & Code Lint'

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Composer 7
uses: php-actions/composer@v5
with:
php_version: 7
- name: PHP 7 tests
uses: php-actions/phpunit@v2
with:
version: 8
php_version: 7

- name: Composer 8
uses: php-actions/composer@v5
with:
php_version: 8
- name: PHP 8 tests
uses: php-actions/phpunit@v2
with:
version: 8
php_version: 8

- name: Run code sniffer
run: composer run code-lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.idea
build/
vendor/
.phpunit.result.cache
33 changes: 0 additions & 33 deletions .scrutinizer.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

23 changes: 13 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"name": "cspray/labrador-http",
"description": "A HTTP microframework written on top of Amp and Labrador",
"scripts": {
"code-lint": "vendor/bin/labrador-cs src/ test/",
"test": "vendor/bin/phpunit",
"test-coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html ./build/coverage"
},
"require": {
"php": "~7.2",
"php": "^7.2|^8.0",
"ext-json": "*",
"amphp/http-server": "~2.1",
"amphp/file": "^1.0",
"cspray/labrador": "dev-main",
"cspray/labrador-async-event": "~2.2.0",
"nikic/fast-route": "~1.3",
"monolog/monolog": "^2.0"
"cspray/labrador": "~3.2.0-alpha",
"nikic/fast-route": "~1.3"
},
"require-dev": {
"phpunit/phpunit": "~7",
"amphp/http-client": "^4.0.0-rc7",
"amphp/phpunit-util": "^1.2",
"cspray/labrador-coding-standard": "0.1.0"
"phpunit/phpunit": "^9.3",
"amphp/http-client": "^4.5",
"cspray/labrador-coding-standard": "0.1.0",
"amphp/phpunit-util": "^1.4"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 8c7dac7

Please sign in to comment.