Skip to content

Commit 5ddd0e1

Browse files
authored
Merge pull request #76 from WebFiori/dev
Dev
2 parents e0d834e + d53d4e5 commit 5ddd0e1

11 files changed

Lines changed: 165 additions & 235 deletions

File tree

.github/workflows/php80.yml

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

.github/workflows/php81.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build PHP 8.1
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
jobs:
9+
test:
10+
name: Run Tests
11+
uses: WebFiori/workflows/.github/workflows/test-php.yaml@main
12+
with:
13+
php-version: '8.1'
14+
15+
code-coverage:
16+
name: Coverage
17+
needs: test
18+
uses: WebFiori/workflows/.github/workflows/coverage-codecov.yaml@main
19+
with:
20+
php-version: '8.1'
21+
coverage-file: 'php-8.1-coverage.xml'
22+
secrets:
23+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
24+
25+
26+

.github/workflows/php81.yml

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

.github/workflows/php82.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build PHP 8.2
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
jobs:
9+
test:
10+
name: Run Tests
11+
uses: WebFiori/workflows/.github/workflows/test-php.yaml@main
12+
with:
13+
php-version: '8.2'
14+
phpunit-config: "tests/phpunit10.xml"
15+
16+
code-coverage:
17+
name: Coverage
18+
needs: test
19+
uses: WebFiori/workflows/.github/workflows/coverage-codecov.yaml@main
20+
with:
21+
php-version: '8.2'
22+
coverage-file: 'php-8.2-coverage.xml'
23+
secrets:
24+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
25+
26+
27+

.github/workflows/php82.yml

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

.github/workflows/php83.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build PHP 8.3
2+
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
pull_request:
7+
branches: [ main, dev ]
8+
env:
9+
OPERATING_SYS: ubuntu-latest
10+
PHP_VERSION: 8.3
11+
jobs:
12+
13+
test:
14+
name: Run Tests
15+
uses: WebFiori/workflows/.github/workflows/test-php.yaml@main
16+
with:
17+
php-version: '8.3'
18+
phpunit-config: 'tests/phpunit10.xml'
19+
20+
21+
code-coverage:
22+
name: Coverage
23+
needs: test
24+
uses: WebFiori/workflows/.github/workflows/coverage-codecov.yaml@main
25+
with:
26+
php-version: '8.3'
27+
coverage-file: 'php-8.3-coverage.xml'
28+
secrets:
29+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
30+
31+
code-quality:
32+
name: Code Quality
33+
needs: test
34+
uses: WebFiori/workflows/.github/workflows/quality-sonarcloud.yaml@main
35+
with:
36+
coverage-file: 'php-8.3-coverage.xml'
37+
secrets:
38+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39+
40+
release-prod:
41+
name: Prepare Production Release Branch / Publish Release
42+
needs: [code-coverage, code-quality]
43+
uses: WebFiori/workflows/.github/workflows/release-php.yaml@main
44+
with:
45+
branch: 'main'

.github/workflows/php83.yml

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

.github/workflows/php84.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build PHP 8.4
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
jobs:
9+
test:
10+
name: Run Tests
11+
uses: WebFiori/workflows/.github/workflows/test-php.yaml@main
12+
with:
13+
php-version: '8.4'
14+
phpunit-config: "tests/phpunit10.xml"
15+
16+
code-coverage:
17+
name: Coverage
18+
needs: test
19+
uses: WebFiori/workflows/.github/workflows/coverage-codecov.yaml@main
20+
with:
21+
php-version: '8.4'
22+
coverage-file: 'php-8.4-coverage.xml'
23+
secrets:
24+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
25+
26+
27+

.github/workflows/php84.yml

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

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ It includes inputs feltering and data validation in addion to creating user-defi
44

55
<p align="center">
66
<a href="https://github.com/WebFiori/http/actions">
7-
<img src="https://github.com/WebFiori/http/actions/workflows/php84.yml/badge.svg?branch=master">
7+
<img src="https://github.com/WebFiori/http/actions/workflows/php84.yaml/badge.svg?branch=main">
88
</a>
99
<a href="https://codecov.io/gh/WebFiori/http">
10-
<img src="https://codecov.io/gh/WebFiori/http/branch/master/graph/badge.svg" />
10+
<img src="https://codecov.io/gh/WebFiori/http/branch/main/graph/badge.svg" />
1111
</a>
1212
<a href="https://sonarcloud.io/dashboard?id=WebFiori_http">
1313
<img src="https://sonarcloud.io/api/project_badges/measure?project=WebFiori_http&metric=alert_status" />
@@ -23,11 +23,10 @@ It includes inputs feltering and data validation in addion to creating user-defi
2323
## Supported PHP Versions
2424
| Build Status |
2525
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
26-
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php80.yml"><img src="https://github.com/WebFiori/http/actions/workflows/php80.yml/badge.svg?branch=master"></a> |
27-
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php81.yml"><img src="https://github.com/WebFiori/http/actions/workflows/php81.yml/badge.svg?branch=master"></a> |
28-
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php82.yml"><img src="https://github.com/WebFiori/http/actions/workflows/php82.yml/badge.svg?branch=master"></a> |
29-
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php83.yml"><img src="https://github.com/WebFiori/http/actions/workflows/php83.yml/badge.svg?branch=master"></a> |
30-
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php84.yml"><img src="https://github.com/WebFiori/http/actions/workflows/php84.yml/badge.svg?branch=master"></a> |
26+
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php81.yaml"><img src="https://github.com/WebFiori/http/actions/workflows/php81.yaml/badge.svg?branch=main"></a> |
27+
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php82.yaml"><img src="https://github.com/WebFiori/http/actions/workflows/php82.yaml/badge.svg?branch=main"></a> |
28+
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php83.yaml"><img src="https://github.com/WebFiori/http/actions/workflows/php83.yaml/badge.svg?branch=main"></a> |
29+
| <a target="_blank" href="https://github.com/WebFiori/http/actions/workflows/php84.yaml"><img src="https://github.com/WebFiori/http/actions/workflows/php84.yaml/badge.svg?branch=main"></a> |
3130

3231
## API Docs
3332
This library is a part of <a>WebFiori Framework</a>. To access API docs of the library, you can visid the following link: https://webfiori.com/docs/webfiori/http .
@@ -67,4 +66,4 @@ Note that the <a href="https://github.com/WebFiori/json">WebFiori Json</a> libra
6766
Another option is to download the latest release manually from <a href="https://github.com/WebFiori/http/releases">Release</a>.
6867

6968
## Usage
70-
For more information on how to use the library, [check here](https://github.com/WebFiori/wf-docs/blob/master/web-services.md)
69+
For more information on how to use the library, [check here](https://github.com/WebFiori/wf-docs/blob/main/web-services.md)

0 commit comments

Comments
 (0)