Skip to content

Commit 4bc6974

Browse files
claudef3l1x
authored andcommitted
Update CI to use contributte reusable workflows
- Replace monolithic main.yaml with separate workflow files - Use contributte/.github reusable workflows for: - codesniffer.yml: Code style checks - phpstan.yml: Static analysis - tests.yml: PHPUnit tests (PHP 8.2, 8.3, 8.4, 8.5) - coverage.yml: Code coverage reporting - Remove deprecated .coveralls.yml
1 parent a512a5a commit 4bc6974

File tree

6 files changed

+90
-273
lines changed

6 files changed

+90
-273
lines changed

.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.3"

.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 8 * * 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.3"

.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 8 * * 1"
12+
13+
jobs:
14+
phpstan:
15+
name: "Phpstan"
16+
uses: contributte/.github/.github/workflows/phpstan.yml@master
17+
with:
18+
php: "8.3"

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Tests"
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+
tests-82:
15+
name: "Nette Tester (PHP 8.2)"
16+
uses: contributte/.github/.github/workflows/nette-tester.yml@master
17+
with:
18+
php: "8.2"
19+
20+
tests-83:
21+
name: "Nette Tester (PHP 8.3)"
22+
uses: contributte/.github/.github/workflows/nette-tester.yml@master
23+
with:
24+
php: "8.3"
25+
26+
tests-84:
27+
name: "Nette Tester (PHP 8.4)"
28+
uses: contributte/.github/.github/workflows/nette-tester.yml@master
29+
with:
30+
php: "8.4"
31+
32+
tests-85:
33+
name: "Nette Tester (PHP 8.5)"
34+
uses: contributte/.github/.github/workflows/nette-tester.yml@master
35+
with:
36+
php: "8.5"

tests/.coveralls.yml

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

0 commit comments

Comments
 (0)