File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Check & fix styling
2+
3+ on : [push]
4+
5+ jobs :
6+ php-cs-fixer :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - name : Checkout code
11+ uses : actions/checkout@v2
12+ with :
13+ ref : ${{ github.head_ref }}
14+
15+ - name : Run PHP CS Fixer
16+ uses : docker://oskarstark/php-cs-fixer-ga
17+ with :
18+ args : --config=.php_cs.dist.php --allow-risky=yes
19+
20+ - name : Commit changes
21+ uses : stefanzweifel/git-auto-commit-action@v4
22+ with :
23+ commit_message : ' chore: fix styling'
Original file line number Diff line number Diff line change 1+ name : Run Tests
2+
3+ on : ['push', 'pull_request']
4+
5+ jobs :
6+ ci :
7+ runs-on : ${{ matrix.os }}
8+ strategy :
9+ matrix :
10+ os : [ubuntu-latest, macos-latest, windows-latest]
11+ php : ['7.4', '8.0', '8.1', '8.2']
12+
13+ name : PHP ${{ matrix.php }} - ${{ matrix.os }}
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v2
18+
19+ - name : Setup PHP
20+ uses : shivammathur/setup-php@v2
21+ with :
22+ php-version : ${{ matrix.php }}
23+ tools : composer:v2
24+ coverage : xdebug
25+
26+ - name : Install PHP dependencies
27+ run : composer update --no-interaction --no-progress
28+
29+ - name : All Tests
30+ run : php vendor/bin/pest --colors=always --coverage
You can’t perform that action at this time.
0 commit comments