File tree Expand file tree Collapse file tree 3 files changed +44
-4
lines changed Expand file tree Collapse file tree 3 files changed +44
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP Composer
2
+
3
+ on :
4
+ push :
5
+ branches : [ "trunk" ]
6
+ pull_request :
7
+ branches : [ "trunk" ]
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Validate composer.json and composer.lock
21
+ run : composer validate --strict
22
+
23
+ - name : Cache Composer packages
24
+ id : composer-cache
25
+ uses : actions/cache@v3
26
+ with :
27
+ path : vendor
28
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
29
+ restore-keys : |
30
+ ${{ runner.os }}-php-
31
+
32
+ - name : Install dependencies
33
+ run : composer install --prefer-dist --no-progress
34
+
35
+ # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36
+ # Docs: https://getcomposer.org/doc/articles/scripts.md
37
+
38
+ - name : Run test suite
39
+ run : composer run-script phpunit
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ryanwelcher/advanced-query-loop" ,
3
- "version " : " 3.0.0 " ,
3
+ "description " : " Query loop block variations to create custom queries. " ,
4
4
"authors" : [
5
5
{
6
6
"name" : " Ryan Welcher" ,
12
12
],
13
13
"type" : " wordpress-plugin" ,
14
14
"homepage" : " https://github.com/ryanwelcher/advanced-query-loop" ,
15
- "license" : " GPL-2.0+ " ,
15
+ "license" : " GPL-2.0-or-later " ,
16
16
"support" : {
17
17
"issues" : " https://github.com/ryanwelcher/advanced-query-loop/issues" ,
18
18
"source" : " https://github.com/ryanwelcher/advanced-query-loop/"
54
54
"dev" : [
55
55
" composer update" ,
56
56
" composer dump-autoload"
57
- ]
57
+ ],
58
+ "phpunit" : " vendor/bin/phpunit"
58
59
}
59
60
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " advanced-query-loop" ,
3
3
"version" : " 3.0.0" ,
4
- "description" : " " ,
4
+ "description" : " Query loop block variations to create custom queries. " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"setup" : " composer run dev" ,
You can’t perform that action at this time.
0 commit comments