Skip to content

Commit 235cffb

Browse files
authored
Merge pull request #51 from iMattPro/updates
Readme cleanup
2 parents ff30721 + 78d73d5 commit 235cffb

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Additional checks include PHP CodeSniffer, Extension Pre Validator (EPV), execut
99
[![Build](https://github.com/phpbb-extensions/test-framework/actions/workflows/validate_workflows.yml/badge.svg)](https://github.com/phpbb-extensions/test-framework/actions/workflows/validate_workflows.yml)
1010
[![Tests](https://github.com/phpbb/phpbb-ext-acme-demo/actions/workflows/tests.yml/badge.svg)](https://github.com/phpbb/phpbb-ext-acme-demo/actions/workflows/tests.yml)
1111
<br clear="both"/>
12-
13-
# How to Use
12+
13+
## How to Use
1414

1515
Your extension's package contents must be located at the root level of the repository. That is, your extension's `composer.json` must be in the **root of the repository**, not inside a subdirectory within the repository.
1616

@@ -40,20 +40,20 @@ jobs:
4040
EXTNAME: acme/demo # Your extension vendor/package name (required)
4141
```
4242
43-
## phpBB Branches
43+
### phpBB Branches
4444
4545
Use the test-framework branch that matches the phpBB version you're developing for:
4646
4747
- `3.3.x`: Targets the phpBB 3.3.x release line.
4848
- `master`: Targets the latest development version of phpBB (`master` branch).
4949

5050
> ‼️ Whichever branch of this framework you choose, be sure it is appended to the `uses:` line after the `@` symbol. For example, if you're targeting the `3.3.x` branch:
51-
>
51+
>
5252
> ```yaml
5353
> uses: phpbb-extensions/test-framework/.github/workflows/[email protected]
5454
> ```
5555

56-
# Configuration Options
56+
## Configuration Options
5757

5858
You can fine-tune this workflow with several optional arguments in the `with` section:
5959

@@ -110,7 +110,7 @@ call-tests:
110110
# Default: 1
111111
RUN_FUNCTIONAL_TESTS: 1
112112
113-
# Install NPM dependencies (if your extension relies on them)? 1 (yes) or 0 (no)
113+
# Install npm dependencies (if your extension relies on them)? 1 (yes) or 0 (no)
114114
# Default: 0
115115
RUN_NPM_INSTALL: 0
116116
@@ -135,9 +135,9 @@ call-tests:
135135
CODECOV: 0
136136
```
137137

138-
# Configuration Examples
138+
## Configuration Examples
139139

140-
## Test an extension with phpBB 3.3.x
140+
### Test an extension with phpBB 3.3.x
141141

142142
```yaml
143143
call-tests:
@@ -147,7 +147,7 @@ call-tests:
147147
EXTNAME: acme/demo
148148
```
149149

150-
## Test an extension with phpBB's master-dev version
150+
### Test an extension with phpBB's master-dev version
151151

152152
```yaml
153153
call-tests:
@@ -157,7 +157,7 @@ call-tests:
157157
EXTNAME: acme/demo
158158
```
159159

160-
## Test an extension but skip the PostgreSQL on Linux and Windows tests
160+
### Test an extension but skip the PostgreSQL on Linux and Windows tests
161161

162162
```yaml
163163
call-tests:
@@ -169,7 +169,7 @@ call-tests:
169169
RUN_WINDOWS_JOBS: 0
170170
```
171171

172-
## Test an extension that has no PHPUnit tests (basic checks only)
172+
### Test an extension that has no PHPUnit tests (basic checks only)
173173

174174
```yaml
175175
call-tests:
@@ -183,7 +183,7 @@ call-tests:
183183
RUN_WINDOWS_JOBS: 0
184184
```
185185

186-
## Test an extension that has no Functional tests
186+
### Test an extension that has no Functional tests
187187

188188
```yaml
189189
call-tests:
@@ -194,7 +194,7 @@ call-tests:
194194
RUN_FUNCTIONAL_TESTS: 0
195195
```
196196

197-
## Test an extension that only supports PHP 8+
197+
### Test an extension that only supports PHP 8+
198198

199199
```yaml
200200
call-tests:
@@ -206,7 +206,7 @@ call-tests:
206206
PHP_VERSION_MATRIX: '["8.0", "8.1", "8.2", "8.3", "8.4"]'
207207
```
208208

209-
## Test an extension that has composer and NPM dependencies
209+
### Test an extension that has composer and npm dependencies
210210

211211
```yaml
212212
call-tests:
@@ -218,7 +218,7 @@ call-tests:
218218
RUN_COMPOSER_INSTALL: 1
219219
```
220220

221-
## Test an extension + generate a code coverage report
221+
### Test an extension + generate a code coverage report
222222

223223
This test framework supports code coverage reporting through [Codecov.io](https://codecov.io).
224224

@@ -242,13 +242,13 @@ call-tests:
242242
> - Log in with your **GitHub** account
243243
> - Go to your [Codecov account settings](https://app.codecov.io/account/token)
244244
> - Copy the token
245-
>
245+
>
246246
> Then, in your GitHub repository:
247-
>
247+
>
248248
> - Navigate to **Settings → Secrets and variables → Actions**
249249
> - Click **"New repository secret"**
250250
> - Name it `CODECOV_TOKEN` and paste your token value
251-
>
251+
>
252252
> 💡 You can view your coverage reports and badges by visiting your extension's page on [Codecov.io](https://codecov.io).
253253

254254
## When the configuration options aren’t enough
@@ -278,10 +278,10 @@ Display a status badge in your repository to indicate the status of your test re
278278
[![Tests](https://github.com/your-org/your-repo/actions/workflows/tests.yml/badge.svg)](https://github.com/your-org/your-repo/actions/workflows/tests.yml)
279279
```
280280

281-
# Contributing
281+
## Contributing
282282

283283
Issues and pull requests are welcome! If you have suggestions for improvement, feel free to [open an issue](https://github.com/phpbb-extensions/test-framework/issues).
284284

285-
# License
285+
## License
286286

287287
[GNU General Public License v2](https://opensource.org/licenses/GPL-2.0)

0 commit comments

Comments
 (0)