Dep: update
주로 PHAN
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
name: build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
env:
|
||||
FORCE_COLOR: 1
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
php:
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
- 7.4
|
||||
- 8.0
|
||||
deps:
|
||||
- lowest
|
||||
- highest
|
||||
include:
|
||||
- php: 8.1
|
||||
deps: highest
|
||||
composer-options: --ignore-platform-reqs
|
||||
exclude:
|
||||
# that config currently breaks as older PHPUnit cannot generate coverage on PHP 8
|
||||
- php: 8
|
||||
deps: lowest
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
|
||||
- uses: ramsey/composer-install@v1
|
||||
with:
|
||||
dependency-versions: ${{ matrix.deps }}
|
||||
composer-options: ${{ matrix.composer-options }}
|
||||
|
||||
- run: vendor/bin/phpunit --coverage-clover=coverage.xml --whitelist lib --bootstrap vendor/autoload.php tests
|
||||
|
||||
- uses: codecov/codecov-action@v1
|
||||
|
||||
release:
|
||||
needs: test
|
||||
if: github.repository_owner == 'felixfbecker' && github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Release
|
||||
run: npm run semantic-release
|
||||
@@ -1,43 +0,0 @@
|
||||
language: php
|
||||
|
||||
php:
|
||||
- '7.0'
|
||||
- '7.2'
|
||||
|
||||
env:
|
||||
global:
|
||||
- FORCE_COLOR=1
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache
|
||||
- $HOME/.npm
|
||||
|
||||
install:
|
||||
- composer install --prefer-dist
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit --coverage-clover=coverage.xml --whitelist lib --bootstrap vendor/autoload.php tests
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: release
|
||||
language: node_js
|
||||
node_js: '8'
|
||||
install:
|
||||
- npm ci
|
||||
script:
|
||||
- npm run semantic-release
|
||||
after_success: false
|
||||
|
||||
stages:
|
||||
- test
|
||||
- name: release
|
||||
if: branch = master AND type = push AND fork = false
|
||||
|
||||
branches:
|
||||
except:
|
||||
- /^v\d+\.\d+\.\d+$/
|
||||
+4
-4
@@ -20,12 +20,12 @@
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.0",
|
||||
"netresearch/jsonmapper": "^1.0 || ^2.0",
|
||||
"phpdocumentor/reflection-docblock": "^4.0.0 || ^5.0.0"
|
||||
"php": "^7.1 || ^8.0",
|
||||
"netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0",
|
||||
"phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^6.0.0"
|
||||
"phpunit/phpunit": "^7.0 || ^8.0"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
|
||||
@@ -3,7 +3,6 @@ declare(strict_types = 1);
|
||||
|
||||
namespace AdvancedJsonRpc;
|
||||
|
||||
use Sabre\Event\Loop;
|
||||
use JsonMapper;
|
||||
use JsonMapper_Exception;
|
||||
use phpDocumentor\Reflection\DocBlockFactory;
|
||||
|
||||
Reference in New Issue
Block a user