Skip to content

Commit 8abc684

Browse files
authored
GitHub Actions: use re-usable workflows (#72)
1 parent bc59956 commit 8abc684

9 files changed

Lines changed: 113 additions & 300 deletions

File tree

.github/workflows/codesniffer.yml

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

.github/workflows/coverage.yml

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

.github/workflows/main.yaml

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

.github/workflows/phpstan.yml

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

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Nette Tester"
2+
3+
on:
4+
pull_request:
5+
6+
push:
7+
branches: ["*"]
8+
9+
schedule:
10+
- cron: "0 8 * * 1"
11+
12+
jobs:
13+
test81:
14+
name: "Nette Tester"
15+
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
16+
with:
17+
php: "8.1"
18+
19+
test80:
20+
name: "Nette Tester"
21+
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
22+
with:
23+
php: "8.0"
24+
25+
test74:
26+
name: "Nette Tester"
27+
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
28+
with:
29+
php: "7.4"
30+
31+
test73:
32+
name: "Nette Tester"
33+
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
34+
with:
35+
php: "7.3"
36+
37+
test72:
38+
name: "Nette Tester"
39+
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
40+
with:
41+
php: "7.2"
42+
composer: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable --prefer-lowest"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77

88
# Tests
99
/temp
10+
/coverage.html
1011
/coverage.xml

0 commit comments

Comments
 (0)