diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 281d3c9..d53c045 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,8 +7,17 @@ on: # Allow manually triggering the workflow. workflow_dispatch: +# Cancels all previous workflow runs for the same branch that have not yet completed. +concurrency: + # The concurrency group contains the workflow name and the branch name. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: bundle: + # Don't run on forks. + if: github.repository == 'php-parallel-lint/PHP-Parallel-Lint' + name: Bundle binary runs-on: ubuntu-latest @@ -22,7 +31,7 @@ jobs: php-version: 8.0 extensions: exif, phar, openssl coverage: none - ini-values: phar.readonly=Off + ini-values: phar.readonly=Off, error_reporting=-1, display_errors=On, zend.assertions=1 - name: Install Composer dependencies uses: ramsey/composer-install@v1 @@ -49,7 +58,7 @@ jobs: verify: name: Validate binary on PHP ${{ matrix.php }} runs-on: ubuntu-latest - continue-on-error: ${{ matrix.experimental == true }} + continue-on-error: ${{ matrix.php == '8.2' }} needs: - bundle @@ -68,10 +77,6 @@ jobs: - '8.1' - '8.2' - include: - - php: '8.2' - experimental: true - steps: - name: Checkout code uses: actions/checkout@v2 @@ -84,6 +89,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} + ini-values: error_reporting=-1, display_errors=On, zend.assertions=1 coverage: none - name: Run linter against codebase diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03133e7..e22bd05 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,12 @@ on: # Allow manually triggering the workflow. workflow_dispatch: +# Cancels all previous workflow runs for the same branch that have not yet completed. +concurrency: + # The concurrency group contains the workflow name and the branch name. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lint: name: Run style linter @@ -48,7 +54,7 @@ jobs: php-version: 8.0 extensions: exif, phar, openssl coverage: none - ini-values: phar.readonly=Off, error_reporting=E_ALL, display_errors=On + ini-values: phar.readonly=Off, error_reporting=-1, display_errors=On, zend.assertions=1 - name: Install Composer dependencies uses: ramsey/composer-install@v1 @@ -75,7 +81,7 @@ jobs: test: name: Run tests on PHP ${{ matrix.php }} runs-on: ubuntu-latest - continue-on-error: ${{ matrix.experimental == true }} + continue-on-error: ${{ matrix.php == '8.2' }} needs: - bundle @@ -95,10 +101,6 @@ jobs: - '8.1' - '8.2' - include: - - php: '8.2' - experimental: true - steps: - name: Checkout code uses: actions/checkout@v2 @@ -107,7 +109,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - ini-values: error_reporting=E_ALL, display_errors=On + ini-values: error_reporting=-1, display_errors=On, zend.assertions=1 coverage: none # Remove PHPCS as it has a minimum PHP requirements of PHP 5.4 and would block install on PHP 5.3.