Skip to content

Commit c483925

Browse files
f3l1xfelixure
andauthored
Update & maintenance (#13)
* CI: use reusable workflows, add workflow_dispatch trigger * Tests: use contributte/tester, rename to .phpt extension * Config: update to contributte standards, use PHP 8.2 base * Composer: use contributte packages, update autoload-dev * CI: use separate workflow files per template --------- Co-authored-by: Contributte AI <ai@f3l1x.io>
1 parent dd920fd commit c483925

24 files changed

+447
-639
lines changed

.editorconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# EditorConfig is awesome: http://EditorConfig.org
2-
31
root = true
42

53
[*]
@@ -11,6 +9,6 @@ indent_style = tab
119
indent_size = tab
1210
tab_width = 4
1311

14-
[{*.json, *.yaml, *.yml, *.md}]
12+
[*.{json,yaml,yml,md}]
1513
indent_style = space
1614
indent_size = 2

.gitattributes

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# Not archived
21
.docs export-ignore
32
tests export-ignore
43
.editorconfig export-ignore
54
.gitattributes export-ignore
65
.gitignore export-ignore
7-
.travis.yml export-ignore
6+
.github export-ignore
87
Makefile export-ignore
98
phpstan.neon export-ignore
10-
README.md export-ignore
119
ruleset.xml 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/coverage.yml

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

.github/workflows/main.yaml

Lines changed: 0 additions & 265 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"

0 commit comments

Comments
 (0)