diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..429b1d6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI +on: + - pull_request + +jobs: + acceptance_tests: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['8.2', '8.3', '8.4', '8.5' ] + steps: + - uses: actions/checkout@v6 + - name: Setup php + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring, intl + ini-values: post_max_size=256M, max_execution_time=180 + coverage: xdebug + tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }} + - name: Validate composer.json + run: composer validate + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-interaction --no-suggest + - name: Codeception + run: php vendor/bin/codecept run diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 1a946a2..e16aa8a 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,24 +1,14 @@ filter: paths: [src/*] - excluded_paths: [vendor/*, test/*] -before_commands: - - 'composer install --dev --prefer-source' + excluded_paths: [vendor/*, tests/*] build: environment: postgresql: false mysql: false redis: false - tests: - override: - - php-scrutinizer-run - - ./vendor/bin/codecept run nodes: - php80: + php82: environment: php: - version: 8.0 - php81: - environment: - php: - version: 8.1 + version: 8.2 diff --git a/composer.json b/composer.json index 6639046..1f18cab 100644 --- a/composer.json +++ b/composer.json @@ -33,14 +33,14 @@ "description" : "Codeception module for PhireMock. Allows to stub remote services for HTTP requests.", "license" : "GPL-3.0-or-later", "require" : { - "php" : "^8.0", - "mcustiel/phiremock-client": "^1.0", + "php" : "^8.2", + "mcustiel/phiremock-client": "^2.0", "codeception/codeception" : "^5.0", - "codeception/lib-asserts": "^2.0" + "codeception/lib-asserts": "^3.0" }, "require-dev" : { - "mcustiel/phiremock-codeception-extension": "^3.0", - "mcustiel/phiremock-server": "^1.0", + "mcustiel/phiremock-codeception-extension": "^4.0", + "mcustiel/phiremock-server": "^2.0", "guzzlehttp/guzzle" : "^7.0", "codeception/module-asserts": "^3.0" },