Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
batumibiz committed Apr 15, 2023
1 parent 73d50cf commit 671d9ff
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 58 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.1'

- name: Get composer cache directory
id: composer-cache
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.1'

- name: Get composer cache directory
id: composer-cache
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
tests:
strategy:
matrix:
php-versions: [ '8.0', '8.1', '8.2' ]
php-versions: [ '8.1', '8.2' ]

runs-on: ubuntu-latest

Expand Down Expand Up @@ -42,20 +42,20 @@ jobs:
run: sudo /etc/init.d/mysql start

- name: Test
if: matrix.php-versions != '8.2'
if: matrix.php-versions != '8.1'
run: composer test
continue-on-error: true

- name: Test with Coverage
if: matrix.php-versions == '8.2'
if: matrix.php-versions == '8.1'
working-directory: ./
run: |
composer test-coverage
sed -i 's/\/home\/runner\/work\/testutils\/testutils\//\/github\/workspace\//g' report.xml
sed -i 's/\/home\/runner\/work\/testutils\/testutils\//\/github\/workspace\//g' clover.xml
- name: Scan code with SonarCloud
if: matrix.php-versions == '8.2'
if: matrix.php-versions == '8.1'
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
}
},
"require": {
"php": "~8.0 || ~8.1 || ~8.2",
"php": "~8.1 || ~8.2",
"ext-pdo": "*",
"phpunit/phpunit": "^10.0.19"
"phpunit/phpunit": "^10.1"
},
"require-dev": {
"slevomat/coding-standard": "^8.9",
"slevomat/coding-standard": "^8.10",
"squizlabs/php_codesniffer": "^3.7",
"vimeo/psalm": "^5.9"
},
Expand Down
94 changes: 48 additions & 46 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">src</directory>
<directory>src</directory>
</include>
</coverage>
</source>

<php>
<var name="test_db_host" value="127.0.0.1"/>
Expand Down

0 comments on commit 671d9ff

Please sign in to comment.