Skip to content

Commit f7efd0b

Browse files
committed
Upgrade to library specification
- Require PHP 8.2+ and nette/security 3.2+ - Use contributte/qa, contributte/phpstan, contributte/tester - Update source files with PHP 8.2+ syntax - Use Toolkit::test() in tests - Sync GitHub workflows with Contributte template - Update phpstan.neon to level 9 - Clean up obsolete configuration files
1 parent b80dbb5 commit f7efd0b

18 files changed

+177
-381
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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Codesniffer"
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
push:
8+
branches: ["*"]
9+
10+
schedule:
11+
- cron: "0 8 * * 1"
12+
13+
jobs:
14+
codesniffer:
15+
name: "Codesniffer"
16+
uses: contributte/.github/.github/workflows/codesniffer.yml@master
17+
with:
18+
php: "8.2"

.github/workflows/main.yaml

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

.github/workflows/phpstan.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Phpstan"
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
push:
8+
branches: ["*"]
9+
10+
schedule:
11+
- cron: "0 10 * * 1"
12+
13+
jobs:
14+
phpstan:
15+
name: "Phpstan"
16+
uses: contributte/.github/.github/workflows/phpstan.yml@master
17+
with:
18+
php: "8.2"

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Nette Tester"
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
push:
8+
branches: ["*"]
9+
10+
schedule:
11+
- cron: "0 10 * * 1"
12+
13+
jobs:
14+
test84:
15+
name: "Tests PHP 8.4"
16+
uses: contributte/.github/.github/workflows/nette-tester.yml@master
17+
with:
18+
php: "8.4"
19+
20+
test83:
21+
name: "Tests PHP 8.3"
22+
uses: contributte/.github/.github/workflows/nette-tester.yml@master
23+
with:
24+
php: "8.3"
25+
26+
test82:
27+
name: "Tests PHP 8.2"
28+
uses: contributte/.github/.github/workflows/nette-tester.yml@master
29+
with:
30+
php: "8.2"
31+
32+
testlowest:
33+
name: "Tests PHP 8.2 Lowest"
34+
uses: contributte/.github/.github/workflows/nette-tester.yml@master
35+
with:
36+
php: "8.2"
37+
composer: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable --prefer-lowest"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# IDE
22
/.idea
3+
/.vscode
34

45
# Composer
56
/vendor
67
/composer.lock
78

89
# Tests
910
/temp
11+
/tests/tmp
1012
/coverage.xml
13+
/coverage.html

0 commit comments

Comments
 (0)