diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2867130 --- /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 + - 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 a4a3ffa..85a837c 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,36 +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: - environment: - php: - version: 8.0 - php81: - environment: - php: - version: 8.1 php82: environment: php: version: 8.2 - php83: - environment: - php: - version: 8.3 - php84: - environment: - php: - version: 8.4 diff --git a/composer.json b/composer.json index 6a4ff86..15f8d19 100644 --- a/composer.json +++ b/composer.json @@ -34,12 +34,12 @@ "description": "Codeception extension for Phiremock. Allows to stub remote services for HTTP requests.", "license": "GPL-3.0-or-later", "require": { - "php": "^8.0", + "php": "^8.2", "codeception/codeception": "^5.0", - "symfony/process": ">=5.0.0 <8.0.0" + "symfony/process": ">=6.0.0 <9.0.0" }, "require-dev": { - "mcustiel/phiremock-server": "^1.0", + "mcustiel/phiremock-server": "^2.0", "codeception/module-rest": "^3.0", "codeception/module-phpbrowser": "^3.0", "guzzlehttp/guzzle": "^7.0"