File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Coding Standards"
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - ' source/**/*.php'
7
+
8
+ env :
9
+ PHP_VERSION : " 8.2"
10
+ # TODO: change to "stable" once 1.20.0 is released
11
+ # DRIVER_VERSION: "stable"
12
+ DRIVER_VERSION : " mongodb/mongo-php-driver@master"
13
+
14
+ jobs :
15
+ phpcs :
16
+ name : " phpcs"
17
+ runs-on : " ubuntu-22.04"
18
+
19
+ steps :
20
+ - name : " Checkout"
21
+ uses : " actions/checkout@v4"
22
+
23
+ - name : " Setup"
24
+ uses : " ./.github/actions/setup"
25
+ with :
26
+ php-version : ${{ env.PHP_VERSION }}
27
+ driver-version : ${{ env.DRIVER_VERSION }}
28
+
29
+ # The -q option is required until phpcs v4 is released
30
+ - name : " Run PHP_CodeSniffer"
31
+ run : " vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
32
+
33
+ rector :
34
+ name : " Rector"
35
+ runs-on : " ubuntu-22.04"
36
+
37
+ steps :
38
+ - name : " Checkout"
39
+ uses : " actions/checkout@v4"
40
+
41
+ - name : " Setup"
42
+ uses : " ./.github/actions/setup"
43
+ with :
44
+ php-version : ${{ env.PHP_VERSION }}
45
+ driver-version : ${{ env.DRIVER_VERSION }}
46
+
47
+ - name : " Run Rector"
48
+ run : " vendor/bin/rector --ansi --dry-run"
You can’t perform that action at this time.
0 commit comments