Skip to content

Commit 062dd4b

Browse files
authored
Merge branch 'main' into copilot/fix-plugin-verification-checks
2 parents bcbf764 + 071e3e6 commit 062dd4b

5 files changed

Lines changed: 19 additions & 28 deletions

File tree

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,29 @@ on:
99
paths:
1010
- .github/workflows/copilot-setup-steps.yml
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
copilot-setup-steps:
17+
name: Setup environment
1418
runs-on: ubuntu-latest
1519
permissions:
1620
contents: read
1721

1822
steps:
1923
- name: Checkout code
2024
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
25+
with:
26+
persist-credentials: false
2127

2228
- name: Check existence of composer.json file
2329
id: check_composer_file
2430
run: echo "files_exists=$(test -f composer.json && echo true || echo false)" >> "$GITHUB_OUTPUT"
2531

2632
- name: Set up PHP environment
2733
if: steps.check_composer_file.outputs.files_exists == 'true'
28-
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
34+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2
2935
with:
3036
php-version: 'latest'
3137
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
@@ -36,9 +42,6 @@ jobs:
3642

3743
- name: Install Composer dependencies & cache dependencies
3844
if: steps.check_composer_file.outputs.files_exists == 'true'
39-
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v3
45+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
4046
env:
4147
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
42-
with:
43-
# Bust the cache at least once a month - output format: YYYY-MM.
44-
custom-cache-suffix: $(date -u "+%Y-%m")

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ wp-cli/checksum-command
33

44
Verifies file integrity by comparing to published checksums.
55

6-
[![Testing](https://github.com/wp-cli/checksum-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/checksum-command/actions/workflows/testing.yml)
6+
[![Testing](https://github.com/wp-cli/checksum-command/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/checksum-command/actions/workflows/testing.yml) [![Code Coverage](https://codecov.io/gh/wp-cli/checksum-command/branch/main/graph/badge.svg)](https://codecov.io/gh/wp-cli/checksum-command/tree/main)
77

88
Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)
99

@@ -175,6 +175,10 @@ Want to contribute a new feature? Please first [open a new issue](https://github
175175

176176
Once you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See "[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)" for details specific to working on this package locally.
177177

178+
### License
179+
180+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
181+
178182
## Support
179183

180184
GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support

codecov.yml

Whitespace-only changes.

features/checksum-plugin.feature

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,36 +55,20 @@ Feature: Validate checksums for WordPress plugins
5555
Scenario: Soft changes are only reported in strict mode
5656
Given a WP install
5757

58-
When I run `wp plugin install release-notes --version=0.1`
58+
When I run `wp plugin install voice-search --version=1.2.0`
5959
Then STDOUT should not be empty
6060
And STDERR should be empty
6161

62-
Given "Release Notes" replaced with "Different Name" in the wp-content/plugins/release-notes/readme.txt file
62+
Given "Voice Search" replaced with "Different Name" in the wp-content/plugins/voice-search/readme.txt file
6363

64-
When I run `wp plugin verify-checksums release-notes`
64+
When I run `wp plugin verify-checksums voice-search`
6565
Then STDOUT should be:
6666
"""
6767
Success: Verified 1 of 1 plugins.
6868
"""
6969
And STDERR should be empty
7070

71-
When I try `wp plugin verify-checksums release-notes --strict`
72-
Then STDOUT should not be empty
73-
And STDERR should contain:
74-
"""
75-
Error: No plugins verified (1 failed).
76-
"""
77-
78-
Given "Release Notes" replaced with "Different Name" in the wp-content/plugins/release-notes/README.md file
79-
80-
When I run `wp plugin verify-checksums release-notes`
81-
Then STDOUT should be:
82-
"""
83-
Success: Verified 1 of 1 plugins.
84-
"""
85-
And STDERR should be empty
86-
87-
When I try `wp plugin verify-checksums release-notes --strict`
71+
When I try `wp plugin verify-checksums voice-search --strict`
8872
Then STDOUT should not be empty
8973
And STDERR should contain:
9074
"""

phpcs.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<!--
66
#############################################################################
77
COMMAND LINE ARGUMENTS
8-
For help understanding this file: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
9-
For help using PHPCS: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage
8+
For help understanding this file: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
9+
For help using PHPCS: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Usage
1010
#############################################################################
1111
-->
1212

0 commit comments

Comments
 (0)