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 : CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+
8+ jobs :
9+ tests :
10+ name : Tests
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v6
14+ - uses : shivammathur/setup-php@v2
15+ with :
16+ php-version : ' 8.5'
17+ - uses : ramsey/composer-install@v3
18+ - run : composer phpunit
19+
20+ code-coverage :
21+ name : Code Coverage
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v6
25+ - uses : shivammathur/setup-php@v2
26+ with :
27+ php-version : ' 8.5'
28+ coverage : pcov
29+ - uses : ramsey/composer-install@v3
30+ - name : Generate coverage report
31+ run : vendor/bin/phpunit --coverage-clover=coverage.xml
32+ - name : Upload to Codecov
33+ uses : codecov/codecov-action@v5
34+ with :
35+ token : ${{ secrets.CODECOV_TOKEN }}
36+
37+ static-analysis :
38+ name : Static Analysis
39+ runs-on : ubuntu-latest
40+ steps :
41+ - uses : actions/checkout@v6
42+ - uses : shivammathur/setup-php@v2
43+ with :
44+ php-version : ' 8.5'
45+ - uses : ramsey/composer-install@v3
46+ - run : composer phpcs
47+ - run : composer phpstan
Original file line number Diff line number Diff line change 1+ name : REUSE
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+
8+ jobs :
9+ reuse-check :
10+ name : Compliance Check
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v6
14+ - uses : actions/setup-python@v6
15+ with :
16+ python-version : ' 3.x'
17+ - run : pip install reuse
18+ - run : reuse lint
You can’t perform that action at this time.
0 commit comments