add debug option for requests #81
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: "Build - CI" | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
coding-standards-php-8: | |
name: "[BACKEND] - Coding standards (PHP-8)" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "8.0" | |
- name: "Cache dependencies" | |
uses: "actions/cache@v2" | |
with: | |
path: "~/.composer/cache" | |
key: "php-8.0-composer-${{ hashFiles('**/composer.json') }}" | |
restore-keys: "php-8.0-composer-" | |
- name: "Install dependencies" | |
run: "composer install --no-interaction --no-progress" | |
- name: "PHP - Coding Standard" | |
run: "vendor/bin/phing phpcs" | |
static-analysis-php-8: | |
name: "[BACKEND] - Static analysis (PHP-8)" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "8.0" | |
- name: "Cache dependencies" | |
uses: "actions/cache@v2" | |
with: | |
path: "~/.composer/cache" | |
key: "php-8.0-composer-${{ hashFiles('**/composer.json') }}" | |
restore-keys: "php-8.0-composer-" | |
- name: "Install dependencies" | |
run: "composer install --no-interaction --no-progress" | |
- name: "PHPStan" | |
run: "vendor/bin/phing phpstan" | |
tests-php-8: | |
name: "[BACKEND] - Tests (PHP-8)" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "8.0" | |
- name: "Cache dependencies" | |
uses: "actions/cache@v2" | |
with: | |
path: "~/.composer/cache" | |
key: "php-8.0-composer-${{ hashFiles('**/composer.json') }}" | |
restore-keys: "php-8.0-composer-" | |
- name: "Install dependencies" | |
run: "composer install --no-interaction --no-progress" | |
- name: "PHPUnit" | |
run: "vendor/bin/paratest tests" |