Skip to content

Update doctrine/annotations requirement from ^1.13.2 to ^2.0.2 #181

Update doctrine/annotations requirement from ^1.13.2 to ^2.0.2

Update doctrine/annotations requirement from ^1.13.2 to ^2.0.2 #181

Workflow file for this run

name: "Build"
# original source: https://github.com/php-pm/php-pm/blob/master/.github/workflows/continuous-integration.yml
on:
pull_request:
push:
jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
deps:
- "normal"
include:
- deps: "low"
php-version: "7.4"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
extensions: "pcntl"
tools: "cs2pr"
# this is needed in order to remove the pcntl_ restrictions on the php-cgi SAPI
ini-values: "disable_functions="
- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
- name: "Install dependencies with composer"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-dist"
if: "${{ matrix.deps == 'normal' }}"
- name: "Install lowest possible dependencies with composer"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-lowest"
if: "${{ matrix.deps == 'low' }}"
# # Ignore CS for PHP8 until https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4702 is merged
# - name: "Run git-phpcs (for pull request)"
# if: "${{ github.event_name == 'pull_request' && matrix.php-version != '8.0' }}"
# run: |
# CHANGED_PHP_FILES=$(git diff origin/$GITHUB_BASE_REF --name-only --diff-filter=ACMRTUXB | grep -E "\.php$" || [[ $? == 1 ]])
# php vendor/bin/php-cs-fixer fix --config=.php_cs.php --dry-run --diff -v -- $CHANGED_PHP_FILES
# - name: "Run git-phpcs (for push)"
# if: "${{ github.event_name != 'pull_request' && matrix.php-version != '8.0' }}"
# run: |
# CHANGED_PHP_FILES=$(git diff --name-only --diff-filter=ACMRTUXB HEAD~..HEAD | grep -E "\.php$" || [[ $? == 1 ]])
# php vendor/bin/php-cs-fixer fix --config=.php_cs.php --dry-run --diff -v -- $CHANGED_PHP_FILES
# - name: "Run a static analysis with phpstan/phpstan"
# run: "php vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"
# - name: "Run PHPUnit"
# run: "vendor/bin/phpunit"