Skip to content

Commit 702b445

Browse files
committed
Split the README file into separate documents
1 parent 982ffc1 commit 702b445

39 files changed

Lines changed: 3198 additions & 3041 deletions

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
.gitignore export-ignore
77
tests export-ignore
88
continuous-integration export-ignore
9+
.github export-ignore
10+
assets export-ignore
11+
docs export-ignore
12+
examples export-ignore

.github/workflows/coverage.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup PHP 8.4 with PCOV
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: '8.4'
22+
tools: composer:v2
23+
coverage: pcov
24+
ini-values: pcov.directory=src
25+
26+
- name: Validate composer.json
27+
run: composer validate --strict
28+
29+
- name: Install dependencies
30+
run: composer install --prefer-dist --no-interaction --no-progress
31+
32+
- name: Run tests
33+
run: composer test
34+
35+
- name: Run tests with coverage
36+
run: >-
37+
php -d pcov.enabled=1
38+
-d pcov.directory=src
39+
./vendor/phpunit/phpunit/phpunit
40+
--configuration ./continuous-integration/phpunit/phpunit.xml
41+
--colors=always
42+
--coverage-clover coverage.xml
43+
--coverage-filter ./src
44+
45+
- name: Upload coverage to Codecov
46+
uses: codecov/codecov-action@v5
47+
with:
48+
token: ${{ secrets.CODECOV_TOKEN }}
49+
files: ./coverage.xml
50+
fail_ci_if_error: true
51+
env:
52+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Static Analysis
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
phpstan:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup PHP 8.4
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: '8.4'
22+
tools: composer:v2
23+
coverage: none
24+
25+
- name: Validate composer.json
26+
run: composer validate --strict
27+
28+
- name: Install dependencies
29+
run: composer install --prefer-dist --no-interaction --no-progress
30+
31+
- name: Run PHPStan
32+
run: composer phpstan-check

0 commit comments

Comments
 (0)