diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 2e94d38..8c14d39 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -48,29 +48,7 @@ jobs: benchmark: name: "Benchmark" runs-on: "ubuntu-latest" - strategy: - matrix: - php-version: - - "7.2" - - "7.3" - - "7.4" - - "8.0" - steps: - - uses: "actions/checkout@v2" - - uses: "shivammathur/setup-php@v2" - with: - php-version: "${{ matrix.php-version }}" - tools: pecl - extensions: bcmath, ctype, gmp - coverage: "none" - ini-values: "memory_limit=-1" - - uses: "ramsey/composer-install@v1" - - name: "Run PHPBench" - run: "composer phpbench -- --ansi" - - unit-tests: - name: "Unit Tests" - runs-on: "ubuntu-latest" + continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false matrix: @@ -78,17 +56,54 @@ jobs: - "7.2" - "7.3" - "7.4" - - "8.0" + experimental: + - false + include: + - php-version: "8.0" + experimental: true + composer-options: "--ignore-platform-reqs" + steps: + - uses: "actions/checkout@v2" + - uses: "shivammathur/setup-php@v2" + with: + php-version: "${{ matrix.php-version }}" + extensions: bcmath, ctype, gmp + coverage: "none" + ini-values: "memory_limit=-1" + - uses: "ramsey/composer-install@v1" + with: + composer-options: "${{ matrix.composer-options }}" + - name: "Run PHPBench" + run: "composer phpbench -- --ansi" + + unit-tests: + name: "Unit Tests" + runs-on: "ubuntu-latest" + continue-on-error: ${{ matrix.experimental }} + strategy: + fail-fast: false + matrix: + php-version: + - "7.2" + - "7.3" + - "7.4" + experimental: + - false + include: + - php-version: "8.0" + experimental: true + composer-options: "--ignore-platform-reqs" steps: - uses: "actions/checkout@v2" - uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php-version }}" - tools: pecl extensions: bcmath, ctype, gmp coverage: "pcov" ini-values: "memory_limit=-1" - uses: "ramsey/composer-install@v1" + with: + composer-options: "${{ matrix.composer-options }}" - name: "Run unit tests" run: "./vendor/bin/phpunit --verbose --colors=always --coverage-clover build/logs/clover.xml --coverage-text" - name: "Publish coverage report to Codecov" diff --git a/composer.json b/composer.json index 41d500b..ea1a95d 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "psy/psysh": "^0.10.0", "slevomat/coding-standard": "^6.0", "squizlabs/php_codesniffer": "^3.5", - "vimeo/psalm": "3.9.4" + "vimeo/psalm": "^3.18" }, "suggest": { "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index be0e7de..2744786 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -1,48 +1,52 @@ - + - new DegradedTimeConverter() DegradedUuid + new DegradedTimeConverter() + + $this + $this + + + + + + $this + + + + + $this + $this + BigNumberConverter + + + $this + $this + + BigNumberTimeConverter - - - $uuidTime - $uuidTime - - - - - $uuid - - - string - - - uuid_parse($uuid) - - - - - $uuid - - - string - - - uuid_parse($uuid) - + + + $calculator + $dceSecurityGenerator + $numberConverter + $timeConverter + $timeGenerator + $timeProvider + @@ -51,12 +55,26 @@ uuid_parse + + + $this + $this + $this + + + + + $this + $this + $this + + - shell_exec('id -u') shell_exec('id -g') - shell_exec('whoami /user /fo csv /nh') + shell_exec('id -u') shell_exec('net user %username% | findstr /b /i "Local Group Memberships"') + shell_exec('whoami /user /fo csv /nh') shell_exec('wmic group get name,sid | findstr /b /i ' . escapeshellarg($firstGroup)) @@ -64,9 +82,31 @@ $macs - - $node - + + $macs + + + $macs[] + + + + + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + @@ -78,4 +118,30 @@ getFactory + + + $this->codec + $this->codec + $this->codec + $this->isDefaultFeatureSet + $this->nameGenerator + $this->numberConverter + $this->uuidBuilder + + + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + $this + +