Skip to content

Commit 7000b93

Browse files
committed
chore: upgrade to contributte library specification
- Upgrade PHP requirement to 8.2+ and Nette to 3.2+ - Replace ninjify packages with contributte/qa and contributte/phpstan - Update phpstan.neon to use contributte ruleset with level 9 - Update ruleset.xml to use contributte/qa ruleset - Replace single main.yaml workflow with separate workflow files (tests, phpstan, codesniffer, coverage) - Rename tests/cases to tests/Cases and tests/fixtures to tests/Fixtures - Update source files to use PHP 8.2 typed properties - Update tests/bootstrap.php to use native Nette Tester - Remove obsolete .kodiak.toml and .coveralls.yml files
1 parent 8790c37 commit 7000b93

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+163
-409
lines changed

.github/.kodiak.toml

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

.github/workflows/codesniffer.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: CodeSniffer
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
9+
jobs:
10+
codesniffer:
11+
uses: contributte/.github/.github/workflows/codesniffer.yml@v1

.github/workflows/coverage.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
coverage:
10+
uses: contributte/.github/.github/workflows/nette-tester-coverage-v2.yml@v1
11+
secrets:
12+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yaml

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

.github/workflows/phpstan.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
9+
jobs:
10+
phpstan:
11+
uses: contributte/.github/.github/workflows/phpstan.yml@v1

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
9+
jobs:
10+
tests:
11+
uses: contributte/.github/.github/workflows/nette-tester.yml@v1

Makefile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
.PHONY: install qa cs csf phpstan tests coverage-clover coverage-html
1+
.PHONY: install qa cs csf phpstan tests coverage
22

33
install:
44
composer update
55

66
qa: phpstan cs
77

88
cs:
9-
vendor/bin/codesniffer src tests
9+
vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 -nsp src tests
1010

1111
csf:
12-
vendor/bin/codefixer src tests
12+
vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 -nsp src tests
1313

1414
phpstan:
15-
vendor/bin/phpstan analyse -l max -c phpstan.neon src
15+
vendor/bin/phpstan analyse -c phpstan.neon
1616

1717
tests:
18-
vendor/bin/tester -s -p php --colors 1 -C tests/cases
18+
vendor/bin/tester -s -p php --colors 1 -C tests/Cases
1919

20-
coverage-clover:
21-
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
22-
23-
coverage-html:
24-
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases
20+
coverage:
21+
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/Cases

0 commit comments

Comments
 (0)