Skip to content

Commit 1f41d51

Browse files
committed
test-coverage-badge on workflow_dispatch
1 parent 0fbef5b commit 1f41d51

6 files changed

Lines changed: 43 additions & 195 deletions

File tree

.github/workflows/test-coverage-badge.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: test-coverage-badge
22

3-
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
3+
on: workflow_dispatch
84

95
jobs:
106
test:
@@ -36,6 +32,9 @@ jobs:
3632
- name: Generate test coverage badge
3733
uses: timkrase/phpunit-coverage-badge@v1.2.0
3834
with:
39-
coverage_badge_path: 'badge-coverage.svg'
35+
coverage_badge_path: "badge-coverage.svg"
4036
push_badge: true
4137
repo_token: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: remove clover.xml
40+
run: rm clover.xml

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CONTRIBUTING
2+
3+
All PRs are welcomed :)
4+
5+
## Coding Style
6+
7+
PHP JSON tongue follows the `PSR-2` coding standard and the `PSR-4` autoloading standard.
8+
9+
## PHPDoc
10+
11+
PHPDoc blocs aren't required, but type hinting is required when possible.
12+
13+
## Pint
14+
15+
```
16+
./vendor/bin/pint
17+
```
18+
19+
Don't worry if your code styling isn't perfect! `Fix PHP code style issues` action will automatically merge any style fixes into the PHP JSON tongue repository after pull requests are merged. This allows us to focus on the content of the contribution and not the code style.
File renamed without changes.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,21 @@ $localization = [
5252
//...
5353
];
5454
```
55+
56+
## Testing
57+
58+
```bash
59+
vendor/bin/pest
60+
```
61+
62+
## Changelog
63+
64+
<!-- Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. -->
65+
66+
## Contributing
67+
68+
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
69+
70+
## License
71+
72+
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

clover.xml

Lines changed: 0 additions & 188 deletions
This file was deleted.

tests/feature/TongueFacadeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use ElaborateCode\JsonTongue\Tests\JsonFaker\JsonFaker;
44
use ElaborateCode\JsonTongue\TongueFacade;
55

6-
it('complete')
6+
it('trascribes')
77
->expect(function () {
88
$this->jsonFaker = JsonFaker::make()
99
->addLocale('ar', [

0 commit comments

Comments
 (0)