fix(flags): Handle bool value matching #124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
pull_request: | |
paths: | |
- "**.php" | |
- "bin/posthog" | |
- "phpcs.xml" | |
- "phpunit.xml" | |
- ".github/workflows/php.yml" | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.0' | |
extensions: uopz, xdebug | |
tools: composer, phpunit | |
- name: Install Dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run PHPUnit Tests | |
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml --coverage-text | |
phpcs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # important! | |
# we may use whatever way to install phpcs, just specify the path on the next step | |
# however, curl seems to be the fastest | |
- name: Install PHP_CodeSniffer | |
run: | | |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar | |
php phpcs.phar --version | |
- uses: tinovyatkin/action-php-codesniffer@v1 | |
with: | |
files: "**.php" # you may customize glob as needed | |
phpcs_path: php phpcs.phar | |
standard: phpcs.xml | |
scope: "file" |