File tree 3 files changed +114
-0
lines changed 3 files changed +114
-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 -i "tests/*/fixtures*" -i tests/Runner/find-tests
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 : Static Analysis (only informative)
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ phpstan :
10
+ name : PHPStan
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - uses : shivammathur/setup-php@v1
15
+ with :
16
+ php-version : 7.4
17
+ coverage : none
18
+
19
+ - run : composer install --no-progress --prefer-dist
20
+ - run : composer phpstan
21
+ 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 : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ os : [ubuntu-latest, windows-latest, macOS-latest]
11
+ php : ['7.1', '7.2', '7.3', '7.4']
12
+
13
+ fail-fast : false
14
+
15
+ name : PHP ${{ matrix.php }} tests on ${{ matrix.os }}
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - uses : shivammathur/setup-php@v1
19
+ with :
20
+ php-version : ${{ matrix.php }}
21
+ extensions : simplexml
22
+ coverage : none
23
+
24
+ - run : composer install --no-progress --prefer-dist
25
+ - run : src/tester --info
26
+ - run : src/tester tests -s
27
+ - if : failure()
28
+ run : for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
29
+ shell : bash
30
+
31
+
32
+ failing_test :
33
+ name : Failing test
34
+ runs-on : ubuntu-latest
35
+ steps :
36
+ - uses : actions/checkout@v2
37
+ - uses : shivammathur/setup-php@v1
38
+ with :
39
+ php-version : 7.4
40
+ coverage : none
41
+
42
+ - run : composer install --no-progress --prefer-dist
43
+ - run : src/tester -o none tests/fail.phptx
44
+ - if : failure()
45
+ run : exit 0
46
+
47
+
48
+ code_coverage :
49
+ name : Code Coverage
50
+ runs-on : ubuntu-latest
51
+ steps :
52
+ - uses : actions/checkout@v2
53
+ - uses : shivammathur/setup-php@v1
54
+ with :
55
+ php-version : 7.4
56
+ extensions : simplexml
57
+ coverage : none
58
+
59
+ - run : composer install --no-progress --prefer-dist
60
+ - run : wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
61
+ - run : src/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
62
+ - run : php coveralls.phar --verbose --config tests/.coveralls.yml
You can’t perform that action at this time.
0 commit comments