Repository navigation
Merge pull request #233 from remicollet/issue-8.6.0beta1 #759
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - "master" | |
| workflow_dispatch: | |
| jobs: | |
| phpt: | |
| name: PHPT - PHP ${{ matrix.php }} ${{ matrix.ts }} ${{ matrix.platform }} opcache=${{ matrix.opcache }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.2', '8.3', '8.4', '8.5'] | |
| platform: [debian, alpine] | |
| ts: [nts, ts] | |
| opcache: [0, 1] | |
| include: | |
| - { platform: debian, dockerfile: Dockerfile.debian } | |
| - { platform: alpine, dockerfile: Dockerfile.alpine } | |
| - { ts: nts, variant: cli } | |
| - { ts: ts, variant: zts } | |
| - { php: '8.5', tag: '8.5-rc' } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: > | |
| docker build | |
| -f ${{ matrix.dockerfile }} | |
| --build-arg PHP_VERSION=${{ matrix.tag || matrix.php }} | |
| --build-arg PHP_VARIANT=${{ matrix.variant }} | |
| --build-arg OPCACHE=${{ matrix.opcache }} | |
| -t ext-ds . | |
| - name: Test | |
| run: docker run --rm ext-ds | |
| phpt-arch: | |
| name: PHPT - Arch Linux | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: docker build -f Dockerfile.arch -t ext-ds . | |
| - name: Test | |
| run: docker run --rm ext-ds | |
| phpunit: | |
| name: PHPUnit - PHP ${{ matrix.php }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: | |
| - "8.2" | |
| - "8.3" | |
| - "8.4" | |
| - "8.5" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Build and install extension | |
| run: | | |
| phpize | |
| ./configure --with-php-config=/usr/bin/php-config | |
| sudo make -j$(nproc) install | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: "--prefer-dist" | |
| - name: Run PHPUnit tests | |
| run: composer test | |
| windows: | |
| name: Windows - PHP ${{ matrix.php-version }} ${{ matrix.ts }} ${{ matrix.arch }} | |
| needs: get-windows-matrix | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJson(needs.get-windows-matrix.outputs.matrix) }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Build the extension | |
| uses: php/php-windows-builder/extension@v1 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| arch: ${{ matrix.arch }} | |
| ts: ${{ matrix.ts }} | |
| args: --enable-ds | |
| get-windows-matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.extension-matrix.outputs.matrix }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Get the extension matrix | |
| id: extension-matrix | |
| uses: php/php-windows-builder/extension-matrix@v1 | |
| with: | |
| php-version-list: '8.2, 8.3, 8.4, 8.5' |