File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Wordpress Scripts
2
+ on :
3
+ push :
4
+ branches : [ "main" ]
5
+ pull_request :
6
+ branches : [ "main" ]
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Setup PHP
19
+ uses : shivammathur/setup-php@v2
20
+ with :
21
+ php-version : ' 8.1'
22
+
23
+ - name : Check PHP version
24
+ run : php -v
25
+
26
+ - name : Validate composer.json and composer.lock
27
+ run : composer validate --strict
28
+
29
+ - name : Cache Composer packages
30
+ id : composer-cache
31
+ uses : actions/cache@v3
32
+ with :
33
+ path : vendor
34
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
35
+ restore-keys : |
36
+ ${{ runner.os }}-php-
37
+
38
+ - name : Install dependencies
39
+ run : composer install --prefer-dist --no-progress
40
+
41
+ - name : Run test suite
42
+ run : composer run-script test
You can’t perform that action at this time.
0 commit comments