-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (50 loc) · 1.35 KB
/
behat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Behat Tests
on:
workflow_dispatch:
pull_request:
paths:
- '**/behat.yml'
- 'composer.*'
- 'behat.*'
- 'src/**'
- 'resources/**'
- 'tests/Behat/**'
- 'tests/fixtures/**'
push:
paths:
- '**/behat.yml'
- 'composer.*'
- 'behat.*'
- 'src/**'
- 'resources/**'
- 'tests/Behat/**'
- 'tests/fixtures/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-tests:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
strategy:
fail-fast: false
matrix:
php-version: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
composer-version: [ 'v2.1', 'v2.2', 'v2.3', 'v2.4', 'v2.5' ]
include:
- php-version: '8.1'
composer-version: 'v2'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:${{ matrix.composer-version }}
coverage: none
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
- name: Run Behat
run: ./vendor/bin/behat --colors