Skip to content

Commit 5a75b52

Browse files
authored
Merge pull request #25 from rtCamp/develop
Merge `develop` into `main`
2 parents 24e1311 + 97515b6 commit 5a75b52

File tree

21 files changed

+4947
-416
lines changed

21 files changed

+4947
-416
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,13 @@ jobs:
4343
files: core-carousel.zip
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
47+
- name: Deploy to Dist Branch
48+
uses: s0/git-publish-subdir-action@develop
49+
env:
50+
REPO: self
51+
BRANCH: dist
52+
FOLDER: .
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
MESSAGE: "chore: distribution build v${{ steps.get_version.outputs.VERSION }}"
55+
SKIP_EMPTY_COMMITS: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ The plugin provides a suite of blocks that work together:
3737

3838
## Live Demo
3939

40-
[**🚀 Try the Interactive Demo in WordPress Playground**](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/rtCamp/core-carousel/production/blueprint.json)
40+
[**🚀 Try the Interactive Demo in WordPress Playground**](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/rtCamp/core-carousel/main/blueprint.json)
4141

4242
## Contributors
4343

4444
- [Danish Shakeel](https://github.com/danish17)
4545
- [Masud Rana](https://github.com/mr-masudrana00)
4646

4747
## License
48-
GPL-2.0-or-later
48+
GPL-2.0-or-later

blueprint.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
},
77
"landingPage": "/",
88
"steps": [
9-
{
10-
"step": "installPlugin",
11-
"pluginData": {
12-
"resource": "url",
13-
"url": "https://corsproxy.io/?https://github.com/rtCamp/core-carousel/releases/latest/download/core-carousel.zip"
14-
}
15-
},
16-
9+
{
10+
"step": "installPlugin",
11+
"pluginData": {
12+
"resource": "url",
13+
"url": "https://cdn.statically.io/gh/rtCamp/core-carousel/dist/core-carousel.zip"
14+
}
15+
},
1716
{
1817
"step": "login",
1918
"username": "admin",

composer.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,37 @@
3737
},
3838
"require-dev": {
3939
"automattic/vipwpcs": "^3.0",
40+
"brain/monkey": "^2.6",
4041
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
4142
"phpcompatibility/phpcompatibility-wp": "^3.0.0-alpha",
4243
"phpstan/extension-installer": "^1.3",
44+
"phpstan/phpstan": "^2.1.22",
4345
"phpstan/phpstan-deprecation-rules": "^2.0.3",
4446
"phpstan/phpstan-phpunit": "^2.0.3",
45-
"phpstan/phpstan": "^2.1.22",
47+
"phpunit/phpunit": "^11.0",
4648
"slevomat/coding-standard": "^8.0",
4749
"squizlabs/php_codesniffer": "^3.9",
4850
"szepeviktor/phpstan-wordpress": "^2.0.2",
4951
"wp-coding-standards/wpcs": "^3.1",
50-
"wpackagist-plugin/plugin-check": "~1.6.0"
52+
"wpackagist-plugin/plugin-check": "~1.6.0",
53+
"yoast/phpunit-polyfills": "^3.0"
5154
},
5255
"autoload": {
5356
"psr-4": {
5457
"Core_Carousel\\": "inc/"
5558
}
5659
},
60+
"autoload-dev": {
61+
"psr-4": {
62+
"Core_Carousel\\Tests\\": "tests/php/"
63+
}
64+
},
5765
"scripts": {
5866
"format": "phpcbf",
5967
"lint": "phpcs",
60-
"phpstan": "phpstan analyse --memory-limit=2G"
68+
"phpstan": "phpstan analyse --memory-limit=2G",
69+
"test": "phpunit",
70+
"test:unit": "phpunit --testsuite unit",
71+
"test:coverage": "phpunit --coverage-html tests/_output/coverage"
6172
}
6273
}

0 commit comments

Comments
 (0)