Skip to content

Commit 2c0e57c

Browse files
committed
Merge remote-tracking branch 'origin' into dev
2 parents 148e978 + e3c02b3 commit 2c0e57c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: php-ext-xlswriter
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run:
7+
runs-on: ${{ matrix.operating-system }}
8+
strategy:
9+
matrix:
10+
operating-system: [ubuntu-latest]
11+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
12+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
22+
- name: Setup Dependencies
23+
run: sudo apt-get install zlib1g-dev valgrind -y
24+
25+
- name: Setup Submodule
26+
run: git submodule update --init
27+
28+
- name: Build Extension And Execute Tests
29+
run: |
30+
phpize && ./configure --enable-reader
31+
make clean && make && make test
32+
33+
- name: Build Extension And Execute Valgrind Tests
34+
if: contains('7.0,7.1,7.2', matrix.php-versions)
35+
run: |
36+
phpize && ./configure --enable-reader
37+
make clean && make && make test
38+
REPORT_EXIT_STATUS=1 php -n run-tests.php -m -n -d extension_dir=./modules/ -d extension=xlswriter.so -P --show-diff --set-timeout 120

0 commit comments

Comments
 (0)