Skip to content

Commit

Permalink
Merge pull request #7 from WebFiori/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
usernane authored Dec 23, 2024
2 parents e82f041 + 967f682 commit e340672
Show file tree
Hide file tree
Showing 25 changed files with 185 additions and 342 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
/.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.

16 changes: 8 additions & 8 deletions .github/workflows/php80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
matrix:
Expand All @@ -19,23 +20,22 @@ jobs:

steps:
- name: Clone Repo
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
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-source --no-interaction --no-dev
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 }}
19 changes: 7 additions & 12 deletions .github/workflows/php81.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [8.2]
php: [8.1]

name: PHP${{matrix.php}} - ${{matrix.os}}

steps:
- name: Clone Repo
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -29,18 +29,13 @@ jobs:
extensions: mysqli, mbstring, sqlsrv
tools: phpunit:9.5.20, composer


- name: Install Dependencies
run: composer install --prefer-source --no-interaction --no-dev
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

- name: SonarCloud
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
18 changes: 10 additions & 8 deletions .github/workflows/php82.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: [ master ]

jobs:

test:
runs-on: ${{ matrix.os }}

Expand All @@ -20,23 +21,24 @@ jobs:

steps:
- name: Clone Repo
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mysqli, mbstring, sqlsrv
tools: phpunit:9.5.20, composer
tools: phpunit:9.5.20, composer, symplify/easy-coding-standard:12.0.6, phpbench/phpbench:1.2.14

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

- name: Install Dependencies
run: composer install --prefer-source --no-interaction --no-dev
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 }}


29 changes: 20 additions & 9 deletions .github/workflows/php83.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:
branches: [ master ]

jobs:

test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
matrix:
Expand All @@ -20,23 +21,33 @@ jobs:

steps:
- name: Clone Repo
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mysqli, mbstring, sqlsrv
tools: phpunit:9.5.20, composer
tools: phpunit:9.5.20, composer, symplify/easy-coding-standard:12.0.6, phpbench/phpbench:1.2.14



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

- name: Install Dependencies
run: composer install --prefer-source --no-interaction --no-dev
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 }}



Loading

0 comments on commit e340672

Please sign in to comment.