Skip to content

Fix invalid curl command shown in profiler #53

Fix invalid curl command shown in profiler

Fix invalid curl command shown in profiler #53

Workflow file for this run

name: CI
on: [ "pull_request" ]
jobs:
tests:
services:
httpbin:
image: kennethreitz/httpbin
ports:
- 8080:80
strategy:
matrix:
php-versions: [ '8.0', '8.1' ]
composer-options: [ '--prefer-lowest', '']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: pcov
env:
fail-fast: true
- name: "Remove composer.lock file"
run: rm composer.lock || true
- uses: php-actions/composer@v6
with:
command: update # use update to use --prefer-lowest parameter
php_version: ${{ matrix.php-versions }}
version: 2
dev: yes
args: --no-interaction --no-progress --prefer-dist ${{ matrix.composer-options }}
- name: "Run php -l on all bundle files"
run: find . -not -path "./vendor/*" -type f -name '*.php' -exec php -l {} \;
- uses: php-actions/phpstan@v3
with:
path: .
memory_limit: 1G
level: 0
php_version: ${{ matrix.php-versions }}
- name: "Run phpunit"
run: "HTTP_BIN_URL=http://localhost:8080 XDEBUG_MODE=coverage php ./vendor/bin/phpunit --coverage-text"