feat: added validation to customers and methods routes #21
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: "Continuous Integration PaymentAPI" | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
- "deploy" | |
jobs: | |
phpunit: | |
name: "PHPUnit Tests" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.1" | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
- "windows-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "pcov" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Tests" | |
run: "vendor/bin/phpunit tests/ --colors" | |
static-analysis-phpstan: | |
name: "Static Analysis by PHPStan" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "locked" | |
php-version: | |
- "8.1" | |
- "8.2" | |
operating-system: | |
- "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
- name: "Install dependencies" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "PHPStan" | |
run: "vendor/bin/phpstan analyse app/ --memory-limit=-1" | |