Skip to content

Commit 7e282b3

Browse files
Start adding CI
1 parent d8fe4ab commit 7e282b3

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: "Build and test"
12+
runs-on: ubuntu-latest
13+
continue-on-error: false
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php: ['8.3', '8.4', '8.5']
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
22+
- name: Setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
tools: phpize
27+
28+
- name: Set up
29+
run: phpize
30+
31+
- name: Configure
32+
run: ./configure --enable-custom_cast
33+
34+
- name: Make and install
35+
run: make -j"$(nproc)" install
36+
37+
- name: Run tests
38+
run: >-
39+
REPORT_EXIT_STATUS=1
40+
NO_INTERACTION=1
41+
TEST_PHP_EXECUTABLE=$(which php)
42+
php run-tests.php -n --show-diff tests

0 commit comments

Comments
 (0)