-
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
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