Skip to content

Commit 4ac3631

Browse files
authored
Workflows
1 parent 8d9ab90 commit 4ac3631

File tree

2 files changed

+84
-3
lines changed

2 files changed

+84
-3
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: "WordPress Dependencies Monitoring Failed - PHP {{ env.PHP_VERSION }}"
3+
labels: ["bug", "dependencies", "wordpress", "monitoring"]
4+
assignees: []
5+
---
6+
7+
## WordPress Dependencies Monitoring Failure
8+
9+
**PHP Version:** {{ env.PHP_VERSION }}
10+
**Workflow Run:** [{{ env.RUN_ID }}]({{ env.WORKFLOW_URL }})
11+
**Date:** {{ date | date('YYYY-MM-DD') }}
12+
13+
### Description
14+
The WordPress dependencies monitoring check has failed during the automated testing process.
15+
16+
### What happened?
17+
The WordPress dependencies monitoring action detected issues with dependencies. This could indicate:
18+
19+
- Outdated WordPress core dependencies
20+
- Incompatible plugin dependencies
21+
- Missing or deprecated WordPress functions being used
22+
- WordPress version compatibility issues
23+
- Plugin dependency conflicts
24+
25+
### Potential Issues
26+
- **WordPress Core Updates:** WordPress core may have been updated with breaking changes
27+
- **Plugin Dependencies:** Dependencies used by the plugin may be outdated or incompatible
28+
- **API Changes:** WordPress APIs used by the plugin may have changed
29+
- **Deprecated Functions:** The plugin may be using deprecated WordPress functions
30+
31+
### Next Steps
32+
1. Review the workflow logs at the link above
33+
2. Check for specific dependency warnings or errors
34+
3. Update WordPress core compatibility if needed
35+
4. Review plugin dependencies for compatibility
36+
5. Update any deprecated WordPress function calls
37+
6. Test with the latest WordPress version
38+
7. Re-run the workflow to verify fixes
39+
40+
### Additional Information
41+
- This monitoring helps ensure WordPress ecosystem compatibility
42+
- Regular dependency monitoring prevents future compatibility issues
43+
- Consider updating minimum WordPress version requirements if needed
44+
45+
---
46+
*This issue was automatically created by the WordPress Dependencies Monitoring workflow failure.*

.github/workflows/wordpress-plugin-check.yml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,6 @@ jobs:
592592
- name: Security Check for known vulnerabilities in dependencies
593593
uses: symfonycorp/security-checker-action@v5
594594

595-
- name: WordPress Vulnerability Scanner
596-
uses: jazzsequence/action-wordpress-vulnerability-scanner@1.0.1
597-
598595
- name: WordPress Vulnerability Check
599596
uses: umutphp/wp-vulnerability-check-github-action@v18
600597
with:
@@ -916,6 +913,9 @@ jobs:
916913

917914
- name: PHPStan for WordPress
918915
uses: dingo-d/phpstan-wp-action@v2
916+
with:
917+
path: '.'
918+
args: 'simple-wp-optimizer.php'
919919

920920
- name: Create issue on PHPStan failure
921921
if: ${{ failure() }}
@@ -928,3 +928,38 @@ jobs:
928928
with:
929929
filename: .github/ISSUE_TEMPLATE/phpstan-failure.md
930930
update_existing: false
931+
932+
monitor-wp-dependencies:
933+
name: Monitor WordPress Dependencies (PHP ${{ matrix.php-version }})
934+
runs-on: ubuntu-latest
935+
strategy:
936+
matrix:
937+
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
938+
fail-fast: false
939+
940+
steps:
941+
- name: Checkout code
942+
uses: actions/checkout@v4
943+
944+
- name: Setup PHP ${{ matrix.php-version }}
945+
uses: shivammathur/setup-php@v2
946+
with:
947+
php-version: ${{ matrix.php-version }}
948+
extensions: mysqli, curl, zip, intl, gd, mbstring, fileinfo, xml
949+
coverage: none
950+
tools: composer:v2
951+
952+
- name: Monitor WordPress Dependencies
953+
uses: fabiankaegy/monitor-wordpress-dependencies-action@v1.0.2
954+
955+
- name: Create issue on dependency monitoring failure
956+
if: ${{ failure() }}
957+
uses: JasonEtco/create-an-issue@v2
958+
env:
959+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
960+
PHP_VERSION: ${{ matrix.php-version }}
961+
RUN_ID: ${{ github.run_id }}
962+
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
963+
with:
964+
filename: .github/ISSUE_TEMPLATE/wp-dependencies-failure.md
965+
update_existing: false

0 commit comments

Comments
 (0)