Skip to content

Commit df3cca4

Browse files
authored
Merge pull request #284 from wpengine/chore-pre-release-process-iteration-9
chore: Fixes some pre-release process issues
2 parents f0a88cc + 9e3e968 commit df3cca4

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wpengine/hwp-previews-wordpress-plugin": patch
3+
---
4+
5+
chore: Updated testing docs to trigger workflow process.

.github/workflows/pre-release-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ jobs:
126126
- name: Create plugin archive
127127
working-directory: ${{ steps.metadata.outputs.PLUGIN_DIR }}
128128
run: |
129-
mkdir -p plugin-build
130-
composer archive --format=zip --file="plugin-build/${{ steps.plugin.outputs.plugin_slug }}.zip"
129+
rm -f plugin-build/${{ steps.plugin.outputs.plugin_slug }}.-*.zip
130+
composer archive -vvv --format=zip --file="plugin-build/${{ steps.plugin.outputs.plugin_slug }}" --dir="."
131131
132132
# Verify archive was created
133133
if [ ! -f "plugin-build/${{ steps.plugin.outputs.plugin_slug }}.zip" ]; then

plugins/hwp-previews/TESTING.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,22 @@ Currently the plugin has the following suite of tests
6161

6262
### WPUnit (WordPress-aware Unit/Integration) Tests
6363

64-
Run WPUnit tests (WordPress loaded):
64+
You can also run WPUnit tests using Composer scripts:
6565

6666
```bash
67-
sh bin/local/run-unit-tests.sh coverage
67+
composer run test:unit
68+
```
69+
70+
To generate coverage reports:
71+
72+
```bash
73+
composer run test:unit:coverage
74+
```
75+
76+
To generate an HTML coverage report:
77+
78+
```bash
79+
composer run test:unit:coverage-html
6880
```
6981

7082
> [!IMPORTANT]

0 commit comments

Comments
 (0)