constant UUID_TYPE_DCE is deprecated, use UUID_TYPE_RANDOM instead #17
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: Continuous Integration Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: PHP ${{ matrix.version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ !matrix.stable }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| version: ['8.0', '8.1', '8.2', '8.3'] | |
| stable: [true] | |
| include: | |
| - os: ubuntu-latest | |
| version: '8.4' | |
| stable: false | |
| - os: macos-latest | |
| version: '8.4' | |
| stable: false | |
| steps: | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.version }} | |
| tool: phpize, php-config | |
| - uses: actions/checkout@v3 | |
| - name: Install uuid | |
| if: ${{ matrix.os == 'macos-latest' }} | |
| run: brew install util-linux | |
| - name: Run phpize | |
| run: phpize | |
| - name: Configure macOS | |
| if: ${{ matrix.os == 'macos-latest' }} | |
| run: ./configure --with-uuid=$(brew --prefix util-linux) | |
| - name: Configure Linux | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: ./configure --with-uuid | |
| - name: Make extension | |
| run: make all | |
| - name: Run tests | |
| run: php -n run-tests.php -n -d extension_dir=modules -d extension=uuid --show-diff tests | |
| - name: Install extension | |
| run: sudo make install | |
| - name: Install extension | |
| run: sudo make install | |
| - name: Check if installed correctly | |
| run: php -dextension="uuid" -m | grep uuid |