Skip to content

Commit 0aa051b

Browse files
committed
Add CLI profiling support and callmap tracking
Introduced CLI profiling capabilities by enhancing the profiler to handle CLI execution, added new `CliCallmap` functionality for tracking xhprof data, and implemented CLI-specific collectors. Updated multiple components, including configuration, collectors, and storage, to support this feature seamlessly.
1 parent 96c8b5d commit 0aa051b

File tree

1 file changed

+44
-12
lines changed

1 file changed

+44
-12
lines changed

.github/workflows/php.yml

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,48 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
build:
14-
runs-on: ubuntu-latest
13+
run:
14+
runs-on: ${{ matrix.operating-system }}
15+
strategy:
16+
matrix:
17+
operating-system: [ ubuntu-latest, macos-latest ] #windows-latest currently not working
18+
php-versions: [ '8.1', '8.2']
19+
composer-deps: [ 'highest', 'lowest', 'lock' ]
20+
composer-versions: [ 'composer:v2' ]
21+
fail-fast: false
22+
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} with ${{ matrix.composer-versions }} ${{ matrix.composer-deps }}
1523
steps:
16-
- name: Install dependencies
17-
run: composer install --prefer-dist --no-progress
18-
- name: Code Validation
19-
run: php vendor/bin/grumphp.phar run
20-
21-
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
22-
# Docs: https://getcomposer.org/doc/articles/scripts.md
23-
24-
# - name: Run test suite
25-
# run: composer run-script test
24+
- name: Checkout
25+
uses: actions/checkout@master
26+
- name: Install PHP
27+
uses: shivammathur/setup-php@master
28+
with:
29+
php-version: ${{ matrix.php-versions }}
30+
tools: ${{ matrix.composer-versions }}
31+
extensions: xdebug, mbstring, posix
32+
- name: Check Versions
33+
run: |
34+
php -v
35+
php -m
36+
composer --version
37+
- name: Get composer cache directory
38+
id: composercache
39+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
40+
- name: Cache dependencies
41+
uses: actions/cache@v4
42+
with:
43+
path: ${{ steps.composercache.outputs.dir }}
44+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
45+
restore-keys: ${{ runner.os }}-composer-
46+
- name: Install dependencies (highest)
47+
if: matrix.composer-deps == 'highest'
48+
run: composer update --prefer-dist --no-progress --no-suggest
49+
- name: Install dependencies (lowest)
50+
if: matrix.composer-deps == 'lowest'
51+
run: composer update --prefer-dist --no-progress --no-suggest --prefer-lowest
52+
- name: Install dependencies (lock)
53+
if: matrix.composer-deps == 'lock'
54+
run: |
55+
composer install --no-progress --no-suggest
56+
- name: Run the tests on unix
57+
run: php vendor/bin/grumphp run --no-interaction

0 commit comments

Comments
 (0)