-
Notifications
You must be signed in to change notification settings - Fork 84
50 lines (42 loc) · 1.31 KB
/
build.yaml
File metadata and controls
50 lines (42 loc) · 1.31 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
name: Build the extension and test the analyzers
on: push
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
- name: Build the extension
run: |
cd extension/
phpize
./configure
make
- name: Test the extension (PHP 7)
if: matrix.php-versions != '8.0' and matrix.php-versions == '8.1'
run: |
cd extension/
REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_EXECUTABLE=$(which php) $(which php) run-tests.php -d extension=$PWD/modules/meminfo.so
- name: Test the extension (PHP 8)
if: matrix.php-versions == '8.0' or matrix.php-versions == '8.1'
run: |
cd extension/
REPORT_EXIT_STATUS=1 NO_INTERACTION=1 make test
- uses: actions/upload-artifact@v2
if: failure()
with:
name: ext-tests-output
path: 'extension/tests/*.out'
- name: Test the analyzers
run: |
cd analyzer
composer install
vendor/bin/phpspec run