diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 28c7876..ae35c64 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,6 +1,10 @@ name: Build -on: push +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: build: @@ -9,11 +13,11 @@ jobs: strategy: fail-fast: false matrix: - php: [7.2, 7.3, 7.4] - coverage: ["true"] + php: [8.0, 8.1, 8.2, 8.3] + coverage: ["false"] include: - - php: 8.0 - coverage: "false" # PHPUnit 8.5.14 doesn't support code coverage under PHP 8 + - php: 8.3 + coverage: "true" # Collecting coverage reports only once steps: - name: Checkout diff --git a/composer.json b/composer.json index 1ef2582..3f5d041 100644 --- a/composer.json +++ b/composer.json @@ -5,13 +5,17 @@ "license": "GPL-2.0-only", "require": { "ext-json": "*", - "php": ">=7.2.0", - "oat-sa/lib-lti1p3-core": "^6.3" + "php": ">=8.0.0", + "oat-sa/lib-lti1p3-core": "^7.0" }, "require-dev": { - "phpunit/phpunit": "^8.5.14", + "lcobucci/jwt": "^4.3", + "nesbot/carbon": "^2.72", + "nyholm/psr7": "^1.8", "php-coveralls/php-coveralls": "^2.4", - "psalm/plugin-phpunit": "^0.15.1", + "phpunit/phpunit": "^9.6", + "psalm/plugin-phpunit": "^0.15", + "psr/http-message": "^1.1", "vimeo/psalm": "^4.6" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 081c3ef..9c207e8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,25 +1,17 @@ - - - - - - - - - - tests/Unit - - - - - - src - - + + + + src + + + + + + + + tests/Unit + +