File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on : ['push', 'pull_request']
4+
5+ jobs :
6+ ci :
7+ runs-on : ${{ matrix.os }}
8+
9+ strategy :
10+ matrix :
11+ os : [ubuntu-latest, macos-latest, windows-latest]
12+ php : ['8.2', '8.3']
13+ dependency-version : [prefer-lowest, prefer-stable]
14+
15+ name : PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
16+
17+ steps :
18+ - name : Set git to use LF
19+ run : |
20+ git config --global core.autocrlf false
21+ git config --global core.eol lf
22+
23+ - name : Checkout
24+ uses : actions/checkout@v3
25+
26+ - name : Setup PHP
27+ uses : shivammathur/setup-php@v2
28+ with :
29+ php-version : ${{ matrix.php }}
30+ extensions : fileinfo
31+ tools : composer:v2
32+ coverage : pcov
33+
34+ - name : Setup Problem Matches
35+ run : |
36+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
37+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
38+
39+ - name : Install Composer dependencies
40+ run : composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --ansi
41+
42+ - name : Style Testing
43+ run : vendor/bin/pint --test --ansi
44+
45+ - name : Unit Testing
46+ run : vendor/bin/pest
You can’t perform that action at this time.
0 commit comments