You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -22,7 +22,7 @@ This repository contains a pre-configured test workflow designed for phpBB exten
22
22
- Files with executable permissions
23
23
- Code coverage reports via Codecov
24
24
25
-
## 🚀 How to Use
25
+
## How to Use
26
26
27
27
On GitHub.com, go to your extension's repository, click **Add file → Create new file**, name it `.github/workflows/tests.yml`, add the workflow content shown below, and commit the file. Make sure to replace `acme/demo` with your actual extension vendor/package name, and optionally you may adjust any of the branch names and other checks.
28
28
@@ -49,8 +49,6 @@ jobs:
49
49
uses: phpbb-extensions/test-framework/.github/workflows/[email protected]# The phpBB branch to run tests with
50
50
with:
51
51
EXTNAME: acme/demo # Your extension vendor/package name
52
-
secrets:
53
-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # Do not edit or remove this
54
52
```
55
53
56
54
### Branches
@@ -71,7 +69,7 @@ Use the test-framework branch that matches the phpBB version you're developing f
71
69
- Your extension's package contents must be located at the root level of the repository. That is, the repository **must directly represent the package**, with all relevant files such as `composer.json`, `README`, `LICENSE`, etc. placed directly in the **root of the repository**, **not inside a subdirectory within the repository**.
72
70
- Tests must be defined in your repository using PHPUnit.
73
71
74
-
## 🛠 Configuration Options
72
+
## Configuration Options
75
73
76
74
You can fine-tune this workflow with several optional arguments in the `with` section:
77
75
@@ -153,32 +151,105 @@ call-tests:
153
151
CODECOV: 0
154
152
```
155
153
156
-
## 📊 Code Coverage with Codecov
154
+
## Configuration Examples
157
155
158
-
This test framework supports code coverage reporting through [Codecov.io](https://codecov.io). To enable it, follow these steps:
Codecov may report incorrect file paths if phpBB is cloned into a subdirectory. To fix this, add a `codecov.yml` file to the `.github/` directory of your extension’s repository with the following content:
202
+
### Test an extension that has no Functional tests
0 commit comments