25
25
env :
26
26
COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
27
28
- - name : Configure sysctl limits
29
- run : |
30
- sudo swapoff -a
31
- sudo sysctl -w vm.swappiness=1
32
- sudo sysctl -w fs.file-max=262144
33
- sudo sysctl -w vm.max_map_count=262144
34
-
35
- - name : Runs Elasticsearch ${{ matrix.es-version }}
36
- uses : elastic/elastic-github-actions/elasticsearch@master
37
- with :
38
- stack-version : ${{ matrix.es-version }}
39
-
40
28
- name : Get composer cache directory
41
29
id : composercache
42
30
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
@@ -52,12 +40,32 @@ jobs:
52
40
run : |
53
41
composer install --prefer-dist
54
42
43
+ - name : PHP Coding Standards
44
+ run : |
45
+ composer run-script phpcs
46
+
47
+ - name : PHP Static Analysis Tool
48
+ run : |
49
+ composer run-script phpstan
50
+
55
51
- name : Unit tests
56
52
run : |
57
53
vendor/bin/phpunit -c phpunit.xml.dist
58
54
env :
59
55
TEST_SUITE : oss
60
56
57
+ - name : Configure sysctl limits
58
+ run : |
59
+ sudo swapoff -a
60
+ sudo sysctl -w vm.swappiness=1
61
+ sudo sysctl -w fs.file-max=262144
62
+ sudo sysctl -w vm.max_map_count=262144
63
+
64
+ - name : Runs Elasticsearch ${{ matrix.es-version }}
65
+ uses : elastic/elastic-github-actions/elasticsearch@master
66
+ with :
67
+ stack-version : ${{ matrix.es-version }}
68
+
61
69
- name : Integration tests
62
70
run : |
63
71
vendor/bin/phpunit -c phpunit-integration-tests.xml
0 commit comments