File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+
17
+ - name : Validate composer.json and composer.lock
18
+ run : composer validate
19
+
20
+ - name : Cache Composer packages
21
+ id : composer-cache
22
+ uses : actions/cache@v2
23
+ with :
24
+ path : vendor
25
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-php-
28
+
29
+ - name : Install dependencies
30
+ if : steps.composer-cache.outputs.cache-hit != 'true'
31
+ run : composer install --prefer-source --no-interaction --dev
32
+
33
+ - name : Run unit tests suite
34
+ run : php vendor/bin/phpunit --configuration tests/Unit/phpunit.xml.dist
35
+
36
+ - name : Run code style suite
37
+ run : php vendor/bin/phpcs --standard=psr12 src/ --ignore=*.min.css
38
+
39
+ - name : Run tests code style
40
+ run : php vendor/bin/phpcs --standard=psr12 tests/ --ignore=/_files/ -n
You can’t perform that action at this time.
0 commit comments