Skip to content

Start adding CI

Start adding CI #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: "Build and test"
runs-on: ubuntu-latest
continue-on-error: false
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4', '8.5']
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: phpize
- name: Set up
run: phpize
- name: Configure
run: ./configure --enable-custom_cast
- name: Make and install
run: sudo make -j"$(nproc)" install
- name: Run tests
run: >-
REPORT_EXIT_STATUS=1
NO_INTERACTION=1
TEST_PHP_EXECUTABLE=$(which php)
php run-tests.php -n --show-diff tests