Skip to content

Commit f4744dd

Browse files
Add action for behat testing
Signed-off-by: Immanuel Raj <[email protected]>
1 parent 8e65aca commit f4744dd

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/behat.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
pull_request:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
9+
name: Behat Test 👨‍🔧
10+
11+
jobs:
12+
Behat-Test:
13+
runs-on: ubuntu-latest
14+
name: Behat Tests - PHP ${{ matrix.php }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
19+
steps:
20+
- name: Check out source code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: '${{ matrix.php }}'
27+
coverage: none
28+
tools: composer
29+
extensions: pcntl, curl, sqlite3, zip, dom, mbstring, json, xml
30+
31+
- name: Install dependencies
32+
run: |
33+
composer install --prefer-dist --no-progress --no-interaction
34+
35+
- name: Test
36+
run: |
37+
sudo -E ./vendor/bin/behat

0 commit comments

Comments
 (0)