add some functions tests #15
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: | |
push: | |
branches: [ dev, master ] | |
pull_request: | |
branches: [ dev, master ] | |
jobs: | |
tests: | |
runs-on: 'Ubuntu-20.04' | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.1', '8.2', '8.3'] | |
name: Tests PHP ${{ matrix.php }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '${{ matrix.php }}' | |
coverage: none | |
ini-values: 'memory_limit=-1' | |
- uses: "ramsey/composer-install@v2" | |
- name: Run Unit tests | |
run: vendor/bin/phpunit | |
style: | |
runs-on: 'Ubuntu-20.04' | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ '8.2' ] | |
name: Style PHP ${{ matrix.php }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '${{ matrix.php }}' | |
coverage: none | |
ini-values: 'memory_limit=-1' | |
- uses: "ramsey/composer-install@v2" | |
- name: Run Style checks | |
run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -v --dry-run --stop-on-violation |