Skip to content

Commit bedde7c

Browse files
authored
deps: Update dependencies and workflows (#8)
* deps: Update dependencies and workflows * chore: cleanup configs * chore: add GitHub issue templates
1 parent dd6281b commit bedde7c

17 files changed

Lines changed: 519 additions & 363 deletions
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Bug Report
2+
description: >-
3+
A bug report. This should be a client-facing issue that needs to be resolved.
4+
title: 'Bug: '
5+
labels:
6+
- 'type: bug 🐛'
7+
body:
8+
- type: textarea
9+
attributes:
10+
label: Description
11+
description: >-
12+
Please write a brief description of the bug, including what you expected and what actually happened.
13+
validations:
14+
required: true
15+
- type: textarea
16+
attributes:
17+
label: Steps to reproduce
18+
description: >-
19+
Please list the all the steps needed to reproduce the bug in an *isolated* way.
20+
placeholder: >-
21+
1. Go to "..."
22+
2. ...
23+
3. Result show X but should be Y
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: additional-notes
28+
attributes:
29+
label: Additional Notes
30+
description: Include any additional notes, context, considerations.
31+
- type: checkboxes
32+
attributes:
33+
label: Please confirm that you have searched existing issues in the repo.
34+
description: >-
35+
You can do this by searching
36+
https://github.com/rtCamp/plugin-skeleton-d/issues and making sure the
37+
bug is not related to another plugin.
38+
options:
39+
- label: 'Yes'
40+
required: true
41+
- type: textarea
42+
id: site-health
43+
attributes:
44+
label: Site Health Info
45+
description: Please include the output of the Site Health Info page, by going to your WordPress `Dashboard > Tools > Site Health > Info`, clicking `Copy site info to clipboard`, and pasting the output here.
46+
value: |
47+
<details>
48+
<summary>Site Health Info</summary>
49+
<!-- Please leave one blank line below for enabling the code block rendering. -->
50+
51+
```
52+
PASTE SITE HEALTH INFO HERE
53+
```
54+
</details>
55+
validations:
56+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: 📚 Documentation
4+
url: https://github.com/rtCamp/plugin-skeleton-d/tree/main/docs
5+
about: Check the documentation before opening an issue
6+
- name: 💬 Discussions
7+
url: https://github.com/rtCamp/plugin-skeleton-d/discussions
8+
about: Ask questions and discuss ideas
9+
- name: 🔒 Security Issue
10+
url: https://github.com/rtCamp/plugin-skeleton-d/security/policy
11+
about: Report security vulnerabilities privately
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Feature request
2+
description: Suggest an idea for Plugin Skeleton D
3+
title: 'Feature: '
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: >-
8+
Thank you for taking the time to submit a feature request.
9+
10+
11+
Please make sure to search the repo for [existing feature
12+
requests](https://github.com/rtCamp/plugin-skeleton-d/issues?q=is%3Aopen+is%3Aissue)
13+
before creating a new one.
14+
- type: textarea
15+
attributes:
16+
label: What problem does this address?
17+
description: >-
18+
Please describe the problem you are trying to solve, including why you
19+
think this is a problem.
20+
placeholder: I'm always frustrated when [...]
21+
validations:
22+
required: true
23+
- type: textarea
24+
attributes:
25+
label: What is your proposed solution?
26+
description: >-
27+
Please provide a clear and concise description of your suggested
28+
solution.
29+
placeholder: What I'd like to see happen is [...]
30+
validations:
31+
required: true
32+
- type: textarea
33+
attributes:
34+
label: What alternatives have you considered?
35+
description: >-
36+
Please list any alternatives you have considered, and why you think your
37+
solution is better.
38+
- type: textarea
39+
attributes:
40+
label: Additional Context
41+
description: Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!--
2+
Thanks for taking the time to submit a Pull Request.
3+
Please make sure to review the Contribution Guidelines before submitting your PR
4+
https://github.com/rtCamp/plugin-skeleton-d/blob/main/docs/CONTRIBUTING.md
5+
-->
6+
7+
## What
8+
9+
<!-- In a few words, what does this PR actually change -->
10+
11+
## Why
12+
13+
<!-- Why is this PR necessary? Please any existing previous issue(s) or PR(s) and include a short summary here, too. -->
14+
15+
### Related Issue(s):
16+
17+
<!-- E.g.
18+
- Fixes | Closes | Part of #456
19+
-->
20+
21+
## How
22+
23+
<!-- How does your PR address the issue at hand? What are the implementation details? Please be specific. -->
24+
25+
## Testing Instructions
26+
27+
<!-- Please include step by step instructions on how to test this PR. -->
28+
<!-- 1. Open a Post or Page. -->
29+
<!-- 2. Insert a Heading Block. -->
30+
<!-- 3. etc. -->
31+
32+
## Screenshots
33+
34+
<!-- Include relevant screenshots proving the PR works as intended. -->
35+
36+
## Additional Info
37+
38+
<!-- Please include any relevant logs, error output, etc -->
39+
40+
## Checklist
41+
42+
- [ ] I have read the [Contribution Guidelines](../docs/CONTRIBUTING.md).
43+
- [ ] My PR title is descriptive and follows the [conventional commit message format](https://www.conventionalcommits.org/en/v1.0.0/).
44+
- [ ] My code passes all lints (PHPCS, PHPStan, ESLint, etc.).
45+
- [ ] My code has [detailed inline documentation](https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/).
46+
- [ ] My code has tests that cover the changes I made.
47+
- [ ] I have updated the project documentation as needed.

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ jobs:
5151
- 'composer.*'
5252
phpcs:
5353
- '.phpcs.xml.dist'
54-
- '.github/reusable-phpcs.yml'
54+
- '.github/workflows/reusable-phpcs.yml'
5555
phpstan:
5656
- 'phpstan.neon.dist'
57-
- '.github/reusable-phpstan.yml'
57+
- '.github/workflows/reusable-phpstan.yml'
5858
phpunit:
5959
- 'tests/**/*.php'
6060
- 'phpunit.xml.dist'
61-
- '.github/reusable-phpunit.yml'
61+
- '.github/workflows/reusable-phpunit.yml'
6262
- 'package*.json'
6363
js:
6464
- '**.cjs'
@@ -79,7 +79,7 @@ jobs:
7979
- '.stylelintrc*'
8080
e2e:
8181
- 'tests/e2e/**/*'
82-
- '.github/reusable-e2e.yml'
82+
- '.github/workflows/reusable-e2e.yml'
8383
jest:
8484
- 'tests/js/**/*'
8585
- 'src/**/__tests__/**/*'

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- '.github/workflows/copilot-setup-steps.yml'
1313
pull_request:
1414
paths:
15-
- .github/workflows/copilot-setup-steps.yml
15+
- '.github/workflows/copilot-setup-steps.yml'
1616

1717
permissions:
1818
contents: read

.github/workflows/pr-title.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ concurrency:
1313

1414
permissions:
1515
pull-requests: write
16+
statuses: write
1617

1718
jobs:
1819
run:

.github/workflows/reusable-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
coverage: none
3131

3232
- name: Install Composer dependencies
33-
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # v3.1.1
33+
uses: ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947 # v3.2.0
3434

3535
- name: Setup Node.js
3636
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
timeout_minutes: 10
5151
max_attempts: 3
52-
command: npm run wp-env start
52+
command: WP_ENV_PORT=8889 WP_ENV_TESTS_PORT=8891 npm run wp-env:test start
5353

5454
- name: Run E2E tests
5555
run: npm run test:e2e

.github/workflows/reusable-phpunit.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
coverage: ${{ inputs.coverage && 'xdebug' || 'none' }}
5454

5555
- name: Install Composer dependencies
56-
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # v3.1.1
56+
uses: ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947 # v3.2.0
5757

5858
- name: Setup Node.js
5959
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
@@ -74,15 +74,15 @@ jobs:
7474
max_attempts: 3
7575
command: |
7676
if [ "${{ inputs.coverage }}" == "true" ]; then
77-
npm run wp-env start -- --xdebug=coverage
77+
npm run wp-env:test start -- --xdebug=coverage
7878
else
79-
npm run wp-env start
79+
npm run wp-env:test start
8080
fi
8181
8282
- name: Log versions
8383
run: |
84-
npm run wp-env -- run cli php -- -v
85-
npm run wp-env -- run cli wp core version
84+
npm run wp-env:test -- run cli php -- -v
85+
npm run wp-env:test -- run cli wp core version
8686
8787
- name: Run PHPUnit tests${{ inputs.coverage && ' with coverage report' || '' }}
8888
run: npm run test:php ${{ !inputs.coverage && '-- --no-coverage' || '' }}

.stylelint.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
/** @type {import('stylelint').Config} */
22
module.exports = {
33
extends: '@wordpress/stylelint-config/scss',
4-
ignoreFiles: [ '**/*.js', '**/*.json', '**/*.php', '**/*.svg' ],
4+
ignoreFiles: [
5+
'**/*.js',
6+
'**/*.json',
7+
'**/*.jsx',
8+
'**/*.php',
9+
'**/*.svg',
10+
'**/*.ts',
11+
'**/*.tsx',
12+
],
513
rules: {},
614
};

0 commit comments

Comments
 (0)