Skip to content

Commit 6042792

Browse files
committed
Use GitHub Actions for running tests
1 parent 8033930 commit 6042792

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/main.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- php7
7+
pull_request:
8+
branches:
9+
- php7
10+
workflow_dispatch:
11+
12+
jobs:
13+
ubuntu:
14+
name: Test on Ubuntu
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
php-version:
21+
- "7.1"
22+
- "7.2"
23+
- "7.3"
24+
- "7.4"
25+
- "8.0"
26+
- "8.1"
27+
28+
steps:
29+
- name: Checkout repo
30+
uses: actions/checkout@v2
31+
- name: Setup PHP
32+
uses: "shivammathur/setup-php@v2"
33+
with:
34+
php-version: "${{ matrix.php-version }}"
35+
coverage: "none"
36+
tools: "phpize, php-config"
37+
- name: Generate build files
38+
run: phpize
39+
- name: Configure build
40+
run: CFLAGS="-Wall -fno-strict-aliasing" ./configure --with-yaml
41+
- name: Build
42+
run: make all
43+
- name: Run tests
44+
run: >-
45+
REPORT_EXIT_STATUS=1
46+
NO_INTERACTION=1
47+
TEST_PHP_EXECUTABLE=$(which php)
48+
php -n
49+
-d open_basedir=
50+
-d output_buffering=0
51+
-d memory_limit=-1
52+
run-tests.php -n
53+
-d extension_dir=modules
54+
-d extension=yaml.so
55+
--show-diff
56+
tests

0 commit comments

Comments
 (0)