File tree Expand file tree Collapse file tree 3 files changed +107
-0
lines changed Expand file tree Collapse file tree 3 files changed +107
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Coding Style
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ nette_cc :
7
+ name : Nette Code Checker
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ - uses : shivammathur/setup-php@v1
12
+ with :
13
+ php-version : 7.4
14
+ coverage : none
15
+
16
+ - run : composer create-project nette/code-checker temp/code-checker ^3 --no-progress
17
+ - run : php temp/code-checker/code-checker --strict-types --no-progress
18
+
19
+
20
+ nette_cs :
21
+ name : Nette Coding Standard
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ - uses : shivammathur/setup-php@v1
26
+ with :
27
+ php-version : 7.4
28
+ coverage : none
29
+
30
+ - run : composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
31
+ - run : php temp/coding-standard/ecs check src tests --config tests/coding-standard.yml
Original file line number Diff line number Diff line change
1
+ name : PHPStan
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ phpstan :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : shivammathur/setup-php@v1
14
+ with :
15
+ php-version : 7.4
16
+ coverage : none
17
+
18
+ - run : composer install --no-progress --prefer-dist
19
+ - run : composer phpstan
20
+ continue-on-error : true # is only informative
Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ tests :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ php : ['7.1', '7.2', '7.3', '7.4']
11
+
12
+ fail-fast : false
13
+
14
+ name : PHP ${{ matrix.php }} tests
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : shivammathur/setup-php@v1
18
+ with :
19
+ php-version : ${{ matrix.php }}
20
+ coverage : none
21
+
22
+ - run : composer install --no-progress --prefer-dist
23
+ - run : vendor/bin/tester tests -s -C
24
+ - if : failure()
25
+ run : for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
26
+ shell : bash
27
+
28
+
29
+ lowest_dependencies :
30
+ name : Lowest Dependencies
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v2
34
+ - uses : shivammathur/setup-php@v1
35
+ with :
36
+ php-version : 7.1
37
+ coverage : none
38
+
39
+ - run : composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
40
+ - run : vendor/bin/tester tests -s -C
41
+
42
+
43
+ code_coverage :
44
+ name : Code Coverage
45
+ runs-on : ubuntu-latest
46
+ steps :
47
+ - uses : actions/checkout@v2
48
+ - uses : shivammathur/setup-php@v1
49
+ with :
50
+ php-version : 7.4
51
+ coverage : none
52
+
53
+ - run : composer install --no-progress --prefer-dist
54
+ - run : vendor/bin/tester -p phpdbg tests -s -C --coverage ./coverage.xml --coverage-src ./src
55
+ - run : wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
56
+ - run : php coveralls.phar --verbose --config tests/.coveralls.yml
You can’t perform that action at this time.
0 commit comments