Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #27

Merged
merged 6 commits into from
Dec 24, 2024
Merged

Dev #27

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# perform LF normalization
# Files and folders here will be not included when creating package
* text eol=crlf
*.php text eol=crlf
*.html text eol=crlf

# Files and folders here will be not included when creating package
/tests export-ignore
/example export-ignore
/.github export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml export-ignore
/sonar-project.properties export-ignore
/sonar-project.properties export-ignore
/release-please-config.json
/CHANGELOG.md
/php_cs.php.dist
39 changes: 0 additions & 39 deletions .github/workflows/php70.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/php71.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/php72.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/php73.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/php74.yml

This file was deleted.

11 changes: 5 additions & 6 deletions .github/workflows/php80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ jobs:
extensions: mysqli, mbstring, sqlsrv
tools: phpunit:8.5.13

- name: Shutdown Ubuntu MySQL
run: sudo service mysql stop

- name: Install Dependencies
run: composer install --prefer-dist --no-interaction
run: composer install --prefer-dist --no-interaction --no-dev

- name: Execute Tests
run: phpunit
run: phpunit --configuration tests/phpunit.xml

- name: CodeCov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/php81.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ jobs:


- name: Install Dependencies
run: composer install --prefer-dist --no-interaction
run: composer install --prefer-dist --no-interaction --no-dev

- name: Execute Tests
run: phpunit
run: phpunit --configuration tests/phpunit.xml

- name: CodeCov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: SonarCloud
uses: SonarSource/sonarcloud-github-action@master
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/php82.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
extensions: mysqli, mbstring, sqlsrv
tools: phpunit:9.5.20, composer

- name: Shutdown Ubuntu MySQL
run: sudo service mysql stop

- name: Install Dependencies
run: composer install --prefer-dist --no-interaction
run: composer install --prefer-dist --no-interaction --no-dev

- name: Execute Tests
run: phpunit
run: phpunit --configuration tests/phpunit.xml

- name: CodeCov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
23 changes: 4 additions & 19 deletions .github/workflows/php83.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,14 @@ jobs:
php-version: ${{ matrix.php }}
extensions: mysqli, mbstring, sqlsrv
tools: phpunit:9.5.20, composer

- name: Shutdown Ubuntu MySQL
run: sudo service mysql stop

- name: Install Dependencies
run: composer install --prefer-dist --no-interaction
run: composer install --prefer-dist --no-interaction --no-dev

- name: Execute Tests
run: phpunit
run: phpunit --configuration tests/phpunit.xml

- name: CodeCov
uses: codecov/codecov-action@v1

release_prod:
name: Prepare Release Branch
needs:
- "test"
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/release-please-action@v3
uses: codecov/codecov-action@v4
with:
release-type: php
config-file: release-please-config.json
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
29 changes: 26 additions & 3 deletions .github/workflows/php84.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,33 @@ jobs:
run: sudo service mysql stop

- name: Install Dependencies
run: composer install --prefer-dist --no-interaction
run: composer install --prefer-dist --no-interaction --no-dev

- name: Execute Tests
run: phpunit
run: phpunit --configuration tests/phpunit.xml

- name: CodeCov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: SonarCloud Code Scan
uses: sonarsource/sonarqube-scan-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

release_prod:
name: Prepare Production Release Branch / Publish Release
needs:
- "test"
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/release-please-action@v3
with:
release-type: php
config-file: release-please-config.json
token: ${{ secrets.GITHUB_TOKEN }}

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"html",
"sockets"
],
"autoload": {
"psr-4": {
"webfiori\\email\\": "webfiori\\email"
"autoload" :{
"psr-4":{
"webfiori\\email\\":"webfiori/email/"
}
}
}
Loading
Loading