Start adding CI #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |