diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 1649eb1..8034c4a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -12,15 +12,24 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 + + strategy: + matrix: + php-versions: ['7.1', '7.4', '8.1'] + + name: PHP ${{ matrix.php-versions }} Test steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Setup PHP 7.4 + - name: Setup PHP ${{ matrix.php-versions }} uses: shivammathur/setup-php@v2 with: - php-version: '7.4' + php-version: ${{ matrix.php-versions }} + + - name: Check PHP Version + run: php -v - name: Install Pandoc run: sudo apt-get install pandoc diff --git a/.gitignore b/.gitignore index 44cfefb..ad47696 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ build # Other **/.DS_Store +.phpunit.result.cache diff --git a/composer.json b/composer.json index 223d3cc..5e3b876 100644 --- a/composer.json +++ b/composer.json @@ -9,16 +9,16 @@ ], "homepage": "https://www.opus-repository.org", "require": { - "php" : ">=7.0", + "php" : ">=7.1", "ext-json" : "*", "renanbr/bibtex-parser": "^2.1.2", "ryakad/pandoc-php": "~1.0", - "opus4-repo/opus4-common": "dev-master", + "opus4-repo/opus4-common": "^4.8", "symfony/console": "*" }, "require-dev": { - "phpunit/phpunit": "6.*", - "laminas/laminas-coding-standard": "<2.3", + "phpunit/phpunit": "<9", + "opus4-repo/codesniffer": "dev-laminas", "phpmetrics/phpmetrics": "2.7.4" }, "minimum-stability": "dev", @@ -46,7 +46,7 @@ "prepare": "mkdir -p build", "test": "phpunit --colors=always --log-junit build/phpunit.xml", "test-coverage": "phpunit --log-junit build/phpunit.xml --colors=always --coverage-html build/coverage/ --coverage-clover build/coverage/clover.xml", - "cs-check": "phpcs -n", + "cs-check": "phpcs -n -p", "cs-report": "phpcs -n --report=checkstyle --report-file=build/checkstyle.xml", "cs-fix": "phpcbf", "metrics": "phpmetrics --report-html=build/metrics --junit=build/phpunit.xml ." diff --git a/phpcs.xml b/phpcs.xml index 2ce565d..d2ffbb8 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,27 +1,6 @@ - + src test - - - - - - - - - - - - - - - - - - - warning - - \ No newline at end of file