Skip to content

feat: deprecate non-int/float values in Gauge::set() #20

feat: deprecate non-int/float values in Gauge::set()

feat: deprecate non-int/float values in Gauge::set() #20

Workflow file for this run

name: 🏗 Build
on:
pull_request:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
prefer_lowest: ["", "--prefer-lowest"]
php: ["8.2", "8.5"]
container:
image: skpr/php-cli:${{ matrix.php }}-dev-v2-stable
options:
--pull always
--user 1001:1001
steps:
- name: Checkout
uses: actions/checkout@v6
with:
show-progress: false
- name: Composer Update
run: composer update --with-all-dependencies --prefer-dist --no-progress --no-interaction ${{ matrix.prefer_lowest }}
- name: PHPCS
# Convert emacs format (file:line:col: severity - message) to GitHub annotations (::severity file=,line=,col=::message)
run: |
./bin/phpcs --report=emacs -q | sed -E 's/^([^:]+):([0-9]+):([0-9]+): (error|warning) - (.*)$/::\4 file=\1,line=\2,col=\3::\5/' || true
./bin/phpcs --report=full
- name: PHPStan
run: ./bin/phpstan --error-format=github analyse
- name: Add PHPUnit matcher
run: |
cat << 'EOF' > .github/phpunit-failure.json
{"problemMatcher":[{"owner":"phpunit-failure","severity":"error","pattern":[{"regexp":"##teamcity\\[testFailed[^\\]]*message='([^']*)'[^\\]]*details='/data/([^:]+):(\\d+)","message":1,"file":2,"line":3}]}]}
EOF
echo "::add-matcher::.github/phpunit-failure.json"
- name: Run Tests
run: ./bin/phpunit --teamcity
- name: Remove PHPUnit matcher
if: always()
run: echo "::remove-matcher owner=phpunit-failure::"