File tree 1 file changed +84
-0
lines changed
1 file changed +84
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
+
3
+ on :
4
+ - " pull_request"
5
+ - " push"
6
+
7
+ name : " CI"
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ coding-guidelines :
14
+ name : Coding Guidelines
15
+
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v3
21
+
22
+ - name : Install PHP
23
+ uses : shivammathur/setup-php@v2
24
+ with :
25
+ php-version : 8.1
26
+ coverage : none
27
+
28
+ - name : Run PHP-CS-Fixer
29
+ run : ./tools/php-cs-fixer fix --dry-run --show-progress=dots --using-cache=no --verbose
30
+
31
+ type-checker :
32
+ name : Type Checker
33
+
34
+ runs-on : ubuntu-latest
35
+
36
+ steps :
37
+ - name : Checkout
38
+ uses : actions/checkout@v3
39
+
40
+ - name : Install PHP
41
+ uses : shivammathur/setup-php@v2
42
+ with :
43
+ php-version : 8.2
44
+ coverage : none
45
+
46
+ - name : Install dependencies with Composer
47
+ run : ./tools/composer update --no-interaction --no-ansi --no-progress
48
+
49
+ - name : Run Psalm
50
+ run : ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats
51
+
52
+ tests :
53
+ name : Tests
54
+
55
+ runs-on : ubuntu-latest
56
+
57
+ strategy :
58
+ fail-fast : false
59
+ matrix :
60
+ php-version :
61
+ - " 8.1"
62
+ - " 8.2"
63
+ - " 8.3"
64
+
65
+ steps :
66
+ - name : " Checkout"
67
+ uses : " actions/checkout@v3"
68
+
69
+ - name : " Install PHP with extensions"
70
+ uses : " shivammathur/setup-php@v2"
71
+ with :
72
+ php-version : " ${{ matrix.php-version }}"
73
+ coverage : " xdebug3"
74
+
75
+ - name : " Install dependencies with Composer"
76
+ run : " ./tools/composer update --no-ansi --no-interaction --no-progress"
77
+
78
+ - name : " Run tests with PHPUnit"
79
+ run : " XDEBUG_MODE=coverage php -d pcov.enabled=0 vendor/bin/phpunit --coverage-clover=coverage.xml"
80
+
81
+ - name : " Send code coverage report to Codecov.io"
82
+ env :
83
+ CODECOV_TOKEN : " ${{ secrets.CODECOV_TOKEN }}"
84
+ run : " bash <(curl -s https://codecov.io/bash) || true"
You can’t perform that action at this time.
0 commit comments