Skip to content

Commit

Permalink
Allow Behat 4.X and add unstableCI job
Browse files Browse the repository at this point in the history
  • Loading branch information
NoResponseMate committed Nov 4, 2023
1 parent c9c59d2 commit 95c3712
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
34 changes: 33 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 95c3712

Please sign in to comment.