File tree 2 files changed +71
-12
lines changed 2 files changed +71
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ push :
7
+ branches :
8
+
9
+ jobs :
10
+ coding-standards :
11
+ name : " Coding Standards"
12
+ runs-on : " ubuntu-20.04"
13
+
14
+ strategy :
15
+ matrix :
16
+ php-version :
17
+ - " 7.4"
18
+
19
+ steps :
20
+ - name : " Checkout"
21
+ uses : " actions/checkout@v2"
22
+
23
+ - name : " Install PHP"
24
+ uses : " shivammathur/setup-php@v2"
25
+ with :
26
+ coverage : " none"
27
+ php-version : " ${{ matrix.php-version }}"
28
+ tools : " cs2pr"
29
+
30
+ - name : " Install dependencies with Composer"
31
+ uses : " ramsey/composer-install@v1"
32
+
33
+ - name : " Run PHP_CodeSniffer"
34
+ run : " vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"
35
+
36
+ tests :
37
+ name : " Tests"
38
+ runs-on : " ubuntu-20.04"
39
+
40
+ strategy :
41
+ matrix :
42
+ php-version :
43
+ - " 7.3"
44
+ - " 7.4"
45
+ - " 8.0"
46
+ - " 8.1"
47
+ dependencies :
48
+ - " highest"
49
+ include :
50
+ - dependencies : " lowest"
51
+ php-version : " 7.3"
52
+
53
+ steps :
54
+ - name : " Checkout"
55
+ uses : " actions/checkout@v2"
56
+
57
+ - name : " Install PHP"
58
+ uses : " shivammathur/setup-php@v2"
59
+ with :
60
+ coverage : " none"
61
+ php-version : " ${{ matrix.php-version }}"
62
+ tools : " cs2pr"
63
+
64
+ - name : " Install dependencies with Composer"
65
+ uses : " ramsey/composer-install@v1"
66
+ with :
67
+ dependency-versions : " ${{ matrix.dependencies }}"
68
+
69
+ - name : " Run PHPUnit"
70
+ run : " vendor/bin/phpunit"
71
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments