[PECL-CVS] [pecl-math-stats] master: Github actions

[email protected] (Rasmus Lerdorf) Tue, 21 Apr 2026 02:47:45 +0000
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Rasmus Lerdorf (rlerdorf)
Date: 2026-04-20T22:47:40-04:00

Commit: https://github.com/php/pecl-math-stats/commit/4d6cfc40669c9ce6b8bb252be1acfb6b3ab412e4
Raw diff: https://github.com/php/pecl-math-stats/commit/4d6cfc40669c9ce6b8bb252be1acfb6b3ab412e4.diff

Github actions

Changed paths:
  A  .github/workflows/ci.yml


Diff:

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..7e9c5c9
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,51 @@
+name: CI
+
+on:
+  push:
+    branches: [master]
+  pull_request:
+    branches: [master]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    strategy:
+      fail-fast: false
+      matrix:
+        php-version: ['8.1', '8.2', '8.3', '8.4', '8.5']
+        include:
+          - php-version: '8.5'
+            experimental: true
+
+    continue-on-error: ${{ matrix.experimental == true }}
+
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Set up PHP ${{ matrix.php-version }}
+        uses: shivammathur/setup-php@v2
+        with:
+          php-version: ${{ matrix.php-version }}
+          coverage: none
+
+      - name: Build
+        run: |
+          phpize
+          ./configure
+          make
+
+      - name: Test
+        env:
+          REPORT_EXIT_STATUS: 1
+          NO_INTERACTION: 1
+        run: |
+          TEST_PHP_EXECUTABLE=$(which php) php -n \
+            -d open_basedir= \
+            -d output_buffering=0 \
+            -d memory_limit=-1 \
+            run-tests.php -n \
+            -d extension_dir=modules \
+            -d extension=stats.so \
+            --show-diff \
+            tests