Skip to content

Commit fdaa2e9

Browse files
committed
Introduce Github actions
1 parent 12ee5c4 commit fdaa2e9

File tree

2 files changed

+43
-29
lines changed

2 files changed

+43
-29
lines changed

.github/workflows/build.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build the extension and test the analyzers
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
php-versions: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: ${{ matrix.php-versions }}
19+
coverage: none
20+
21+
- name: Build the extension
22+
run: |
23+
cd extension/php*$(echo ${{ matrix.php-versions }} | cut -b 1)*/
24+
phpize
25+
./configure
26+
make
27+
28+
- name: Test the extension
29+
run: |
30+
cd extension/php*$(echo ${{ matrix.php-versions }} | cut -b 1)*/
31+
REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_EXECUTABLE=$(which php) $(which php) run-tests.php -d extension=$PWD/modules/meminfo.so
32+
33+
- uses: actions/upload-artifact@v2
34+
if: failure()
35+
with:
36+
name: ext-tests-output
37+
path: 'extension/**/tests/*.out'
38+
39+
- name: Test the analyzers
40+
run: |
41+
cd analyzer
42+
composer install
43+
vendor/bin/phpspec run

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)