Skip to content

Commit 881e3e7

Browse files
inshoppernikic
authored andcommitted
Add github actions workflow
1 parent 1122cb4 commit 881e3e7

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/common.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
tests:
14+
name: Execute tests on ${{ matrix.operating-system }} with PHP ${{ matrix.php-versions }}
15+
runs-on: ${{ matrix.operating-system }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
operating-system:
20+
- "ubuntu-latest"
21+
- "macos-latest"
22+
php-versions:
23+
- "7.0"
24+
- "7.1"
25+
- "7.2"
26+
- "7.3"
27+
- "7.4"
28+
- "8.0"
29+
- "8.1"
30+
- "nightly"
31+
steps:
32+
- name: Setup PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php-versions }}
36+
coverage: none
37+
tools: phpize
38+
env:
39+
update: true
40+
41+
- uses: actions/checkout@v3
42+
43+
- name: Setup extension
44+
run: |
45+
phpize
46+
./configure --enable-scalar-objects
47+
make
48+
sudo make install
49+
50+
- name: Make test
51+
run: make test
52+
53+
- name: Run tests
54+
env:
55+
REPORT_EXIT_STATUS: 1
56+
run: php run-tests.php -p `which php` --show-diff -d extension=`pwd`/modules/scalar_objects.so -q

0 commit comments

Comments
 (0)