Skip to content

Commit 50e84ea

Browse files
committed
Merge branch 'trunk' into try/adding-transform
2 parents ae43482 + 67a5bc3 commit 50e84ea

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
lines changed

.github/workflows/phpunit.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ryanwelcher/advanced-query-loop",
3-
"version": "3.0.0",
3+
"description": "Query loop block variations to create custom queries.",
44
"authors": [
55
{
66
"name": "Ryan Welcher",
@@ -12,7 +12,7 @@
1212
],
1313
"type": "wordpress-plugin",
1414
"homepage": "https://github.com/ryanwelcher/advanced-query-loop",
15-
"license": "GPL-2.0+",
15+
"license": "GPL-2.0-or-later",
1616
"support": {
1717
"issues": "https://github.com/ryanwelcher/advanced-query-loop/issues",
1818
"source": "https://github.com/ryanwelcher/advanced-query-loop/"
@@ -54,6 +54,7 @@
5454
"dev": [
5555
"composer update",
5656
"composer dump-autoload"
57-
]
57+
],
58+
"phpunit": "vendor/bin/phpunit"
5859
}
5960
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "advanced-query-loop",
33
"version": "3.0.0",
4-
"description": "",
4+
"description": "Query loop block variations to create custom queries.",
55
"main": "index.js",
66
"scripts": {
77
"setup": "composer run dev",

0 commit comments

Comments
 (0)