This repository was archived by the owner on Jun 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +64
-0
lines changed Expand file tree Collapse file tree 3 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ root = true
3
+
4
+ [* ]
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ charset = utf-8
8
+ indent_style = space
9
+ indent_size = 4
10
+
11
+ [* .{yml,yaml} ]
12
+ indent_size = 2
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ tags :
7
+ pull_request :
8
+
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ${{ matrix.os }}
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ php : [7.1, 7.2, 7.3, 7.4]
17
+ os : [ubuntu-18.04]
18
+ name : PHP v${{ matrix.php }} Test ${{ matrix.env }} on ${{ matrix.os }}
19
+
20
+ steps :
21
+ - uses : actions/checkout@v1
22
+
23
+ - name : Install PHP
24
+ uses : shivammathur/setup-php@1.7.4
25
+ with :
26
+ php-version : ${{ matrix.php }}
27
+ extensions : json, mbstring, pdo
28
+
29
+ - name : Get Composer Cache Directory
30
+ id : composer-cache
31
+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
32
+
33
+ - name : Cache dependencies
34
+ uses : actions/cache@v1
35
+ with :
36
+ path : ${{ steps.composer-cache.outputs.dir }}
37
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
38
+ restore-keys : ${{ runner.os }}-composer-
39
+
40
+ - name : Install dependencies
41
+ run : composer --prefer-dist install
42
+
43
+ - name : Run tests
44
+ run : make test-unit
45
+
46
+ - name : Run cs-fixer
47
+ run : make php-cs-fix-diff
48
+ # Remove after executing command make php-cs-fix and commit changed files
49
+ continue-on-error : true
Original file line number Diff line number Diff line change @@ -6,5 +6,8 @@ php-cs-check:
6
6
php-cs-fix :
7
7
$(WORKING_DIR ) /vendor/bin/php-cs-fixer fix
8
8
9
+ php-cs-fix-diff :
10
+ $(WORKING_DIR ) /vendor/bin/php-cs-fixer fix --dry-run --diff
11
+
9
12
test-unit :
10
13
./vendor/bin/codecept run unit
You can’t perform that action at this time.
0 commit comments