Support PHP 8.6 #173
Workflow file for this run
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
| # Runs php-ast's tests and verifies that the package can be built. | |
| name: CI | |
| # Controls when the action will run. | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the master branch | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| # This workflow contains a single job called "build" | |
| build: | |
| # The type of runner that the job will run on | |
| runs-on: ubuntu-latest | |
| # See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-environment-variables-in-a-matrix | |
| strategy: | |
| # 8.6 is built from php-src master, so a failure there should not cancel | |
| # the other versions. | |
| fail-fast: false | |
| matrix: | |
| # NOTE: Quoted so the yaml parser does not turn e.g. 8.0 into the number 8. | |
| PHP_VERSION: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6'] | |
| # Steps represent a sequence of tasks that will be executed as part of the job | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.PHP_VERSION }} | |
| tools: pecl | |
| - name: Build | |
| run: | | |
| phpize | |
| EXTRA_CFLAGS='-Wall -Wextra -Wno-unused-parameter' ./configure | |
| make -j2 | |
| - name: Test | |
| run: NO_INTERACTION=1 REPORT_EXIT_STATUS=1 make test TESTS="--show-diff" | |
| - name: Verify package.xml is valid | |
| run: pecl package |