Merge pull request #1 from devgaucho/patch-1 #24
Workflow file for this run
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, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['7.4', '8.0'] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, gd, zip, intl | |
ini-values: max_execution_time=600, memory_limit=-1 | |
coverage: xdebug | |
- name: Validate composer.json | |
run: | | |
curl -sS https://getcomposer.org/installer | php -- --filename=composer | |
composer validate | |
- name: Install dependency | |
run: | | |
composer install | |
- name: Check code standart | |
run: | | |
composer style | |
- name: Analyze code | |
run: | | |
composer static-analyze | |
- name: Run tests | |
run: | | |
composer unit | |
- name: Check coverage | |
run: | | |
composer coverage | |
- name: Upload coverage results to Coveralls | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
composer global require php-coveralls/php-coveralls | |
php-coveralls --coverage_clover=build/logs/clover.xml -v |