-
-
Notifications
You must be signed in to change notification settings - Fork 113
145 lines (119 loc) · 4.19 KB
/
Copy pathbehat.yml
File metadata and controls
145 lines (119 loc) · 4.19 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: Behat
on:
push:
paths: &paths
- .github/workflows/behat.yml
- src/Test/Behat/**
pull_request:
paths: *paths
schedule:
- cron: '0 0 1,16 * *'
defaults:
run:
shell: bash
working-directory: ./src/Test/Behat
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
behat:
name: Behat - P:${{ matrix.php }}, S:${{ matrix.symfony }}${{ matrix.deps == 'lowest' && ' (lowest)' || '' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.3, 8.5 ]
symfony: [ 6.4.*, 7.4.* ]
deps: [ highest, lowest ]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: flex
- name: Add the polyfill compatible with Doctrine ^2.16
if: ${{ matrix.deps == 'lowest' }}
run: composer require --dev symfony/polyfill-php80:^1.16 --no-update
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
working-directory: "src/Test/Behat"
dependency-versions: ${{ matrix.deps }}
composer-options: --prefer-dist
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
- name: "Main test suite: reset DB at scenario level, with Dama support"
run: vendor/bin/behat --colors -vvv
- name: "Main test suite: reset DB at scenario level, without Dama support"
run: vendor/bin/behat --colors -vvv --profile=main-no-dama
- name: "Main test suite: reset DB at scenario level, with native Dama extension"
run: vendor/bin/behat --colors -vvv --profile=main-native-dama --tags='~@skip-with-native-dama'
- name: Manual reset DB
run: vendor/bin/behat --colors -vvv --profile=reset-manual
- name: Manual reset DB and Dama support
run: vendor/bin/behat --colors -vvv --profile=reset-manual-dama
- name: Reset DB at feature level
run: vendor/bin/behat --colors -vvv --profile=reset-feature
- name: Reset DB at feature level with Dama support
run: vendor/bin/behat --colors -vvv --profile=reset-feature-dama
- name: Reset DB disabled
run: vendor/bin/behat --colors -vvv --profile=reset-disabled
- name: Overriding built-in step definitions
run: vendor/bin/behat --colors -vvv --profile=override-steps
phpunit:
name: PHPUnit - P:${{ matrix.php }}, S:${{ matrix.symfony }}${{ matrix.deps == 'lowest' && ' (lowest)' || '' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.3, 8.5 ]
symfony: [ 6.4.*, 7.4.* ]
deps: [ highest, lowest ]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: flex
- name: Add the polyfill compatible with Doctrine ^2.16
if: ${{ matrix.deps == 'lowest' }}
run: composer require --dev symfony/polyfill-php80:^1.16 --no-update
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
working-directory: "src/Test/Behat"
dependency-versions: ${{ matrix.deps }}
composer-options: --prefer-dist
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
- name: Run tests
run: vendor/bin/phpunit
phpstan:
name: PhpStan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.5
coverage: none
tools: flex
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
working-directory: "src/Test/Behat"
composer-options: --prefer-dist
env:
SYMFONY_REQUIRE: 7.4.*
- name: Install PHPStan
run: composer bin phpstan install
- name: Run PHPStan
run: ../../../bin/tools/phpstan/vendor/phpstan/phpstan/phpstan