Files
tez-utils-num/.github/workflows/php.yml
T
rhalberstadt 7787935a9e
PHP Composer / build (pull_request) Failing after 23s
feat: extend Bc methods to accept int|float|string inputs (closes #1)
- All Bc scalar methods now accept int|float|string instead of string only
  - Array methods accept array<int|float|string>
  - Added (string) casts before Guard::isNumeric() calls
  - PHPStan @phpstan-ignore-line for bcmath numeric-string constraints
  - Removed redundant @param docblocks (types in signatures, per cs-fixer)
2026-07-30 11:37:48 +02:00

47 lines
1009 B
YAML

name: PHP Composer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate composer.json and composer.lock
run: composer validate --strict --no-check-lock
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Configure GitHub OAuth for Composer
if: ${{ secrets.GH_COMPOSER_TOKEN != '' }}
run: composer config --global github-oauth.github.com ${{ secrets.GH_COMPOSER_TOKEN }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: PHPStan
run: composer phpstan
- name: Code style check
run: composer cs-check
- name: Tests
run: composer test