Skip to content

Commit 3351f3a

Browse files
committed
Upgrade to library specification
- Require PHP 8.2+ and nette/security 3.2+ - Use contributte/qa and contributte/phpstan for QA tools - Add nette/tester and mockery for testing - Update phpstan.neon to use level 9 - Split CI workflows into separate files - Update source files with PHP 8.2+ syntax (constructor property promotion, typed properties) - Rename tests/cases to tests/Cases - Update bootstrap to use Tester\Environment directly - Clean up obsolete configuration files
1 parent b80dbb5 commit 3351f3a

19 files changed

+205
-350
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Not archived
22
.docs export-ignore
3+
.github export-ignore
34
tests export-ignore
45
.editorconfig export-ignore
56
.gitattributes export-ignore
67
.gitignore export-ignore
7-
.travis.yml export-ignore
88
Makefile export-ignore
99
phpstan.neon export-ignore
1010
README.md export-ignore

.github/.kodiak.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/codesniffer.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Code Sniffer
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
workflow_dispatch:
13+
14+
jobs:
15+
codesniffer:
16+
name: Code Sniffer
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: 8.2
27+
extensions: json
28+
tools: composer
29+
30+
- name: Install dependencies
31+
run: composer update --no-interaction --no-progress --prefer-dist --prefer-stable
32+
33+
- name: Run Code Sniffer
34+
run: make cs

.github/workflows/coverage.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Code Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
workflow_dispatch:
8+
9+
jobs:
10+
coverage:
11+
name: Code Coverage
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: 8.2
22+
extensions: json
23+
coverage: pcov
24+
tools: composer
25+
26+
- name: Install dependencies
27+
run: composer update --no-interaction --no-progress --prefer-dist --prefer-stable
28+
29+
- name: Run tests with coverage
30+
run: make coverage

.github/workflows/main.yaml

Lines changed: 0 additions & 269 deletions
This file was deleted.

.github/workflows/phpstan.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
workflow_dispatch:
13+
14+
jobs:
15+
phpstan:
16+
name: PHPStan
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: 8.2
27+
extensions: json
28+
tools: composer
29+
30+
- name: Install dependencies
31+
run: composer update --no-interaction --no-progress --prefer-dist --prefer-stable
32+
33+
- name: Run PHPStan
34+
run: make phpstan

0 commit comments

Comments
 (0)