Skip to content

Commit

Permalink
feature/php82 (#16)
Browse files Browse the repository at this point in the history
* feature/php82

* Update test-cc.yml

* allow-plugins

* SafeDirFix

---------

Co-authored-by: Mateusz Wojczal <mateusz@wojczal.com>
  • Loading branch information
qunabu and Mateusz Wojczal committed Apr 13, 2023
1 parent d9fe41b commit 64c0fc7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/test-cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
phpunit-code-coverage:
runs-on: ubuntu-latest
container:
image: escolalms/php:7.4
image: escolalms/php:8.2

services:
mysql:
Expand All @@ -33,6 +33,9 @@ jobs:

- name: Instantiate package
uses: actions/checkout@v2

- name: SafeDirFix
run: git config --global safe.directory '*'

- name: Setup environment
run: cp -r env/codecov/. .
Expand Down Expand Up @@ -65,6 +68,9 @@ jobs:
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: SafeDirFix
run: git config --global safe.directory '*'

- name: Convert
run: ./cc-test-reporter format-coverage coverage.xml -t clover -o codeclimate.0.json

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
- name: Run tests
run: vendor/bin/phpunit

php74-laravel-latest-phpunit-mysql:
php82-laravel-latest-phpunit-mysql:
runs-on: ubuntu-latest
container:
image: escolalms/php:7.4
image: escolalms/php:8.2

services:
mysql:
Expand Down Expand Up @@ -95,10 +95,10 @@ jobs:
- name: Run tests
run: vendor/bin/phpunit

php74-laravel-latest-phpunit-postgres:
php82-laravel-latest-phpunit-postgres:
runs-on: ubuntu-latest
container:
image: escolalms/php:7.4
image: escolalms/php:8.2

services:
postgres:
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
},
"config": {
"preferred-install": "dist",
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
Expand Down

0 comments on commit 64c0fc7

Please sign in to comment.