-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (35 loc) · 1.04 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
name: Integration
on:
pull_request:
push:
branches:
- master
- production
jobs:
integration:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
name: php
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2.30.5
with:
php-version: ${{ matrix.php-versions }}
coverage: none
- name: Install composer
run: composer install
- name: Start webserver
run: php -S localhost:8888 index.php &
- name: Run behat
run: cd tests/integration && ../../vendor/bin/behat --colors .
summary:
runs-on: ubuntu-latest
needs: integration
if: always()
name: integration-summary
steps:
- name: Summary status
run: if ${{ needs.integration.result != 'success' && needs.integration.result != 'skipped' }}; then exit 1; fi