diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0970d8..9a8d3e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - php: ["7.4", "8.0", "8.1"] + php: ["7.4", "8.0", "8.1", "8.2"] steps: - uses: actions/checkout@v3 @@ -39,3 +39,35 @@ jobs: - name: Run tests run: vendor/bin/behat --strict -vvv --no-interaction + + unstable: + runs-on: ubuntu-latest + name: "PHP ${{ matrix.php }}" + strategy: + fail-fast: false + matrix: + php: ["8.2"] + behat: ["4.x-dev"] + + steps: + - uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "${{ matrix.php }}" + coverage: none + + - name: Install dependencies + run: composer update --with="behat/behat:${{ matrix.behat }}" + + - name: Run analysis + run: composer validate --strict + + - name: Run static checks + run: vendor/bin/psalm --php-version="${{ matrix.php }}" + continue-on-error: true + + - name: Run tests + run: vendor/bin/behat --strict -vvv --no-interaction + continue-on-error: true diff --git a/composer.json b/composer.json index ee84fc5..6a95d75 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ ], "require": { "php": "^7.4 || ^8.0", - "behat/behat": "^3.4" + "behat/behat": "^3.4 || ^4.0" }, "require-dev": { "symfony/process": "^4.4 || ^5.0 || ^6.0",