-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
php8 compatibility + setup github actions
- Loading branch information
Showing
14 changed files
with
1,940 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "Tests" | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
defaults: | ||
run: | ||
working-directory: . | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
operating-system: ['ubuntu-latest'] | ||
php-version: ['8.1', '8.2', '8.3'] | ||
|
||
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }} | ||
steps: | ||
- name: Install SSH keys | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.OVOS_PHP_LIBRARY }} | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: composer:v2 | ||
coverage: none | ||
#ini-values: display_errors=off, log_errors=on | ||
extensions: :xdebug, curl, fileinfo, gd, gettext, gmp, intl, imap, ldap, mbstring, exif, mysqli, openssl, pdo_mysql, soap, sockets, sodium, sqlite3, pdo_sqlite, redis, yaml, apcu, opcache | ||
|
||
- name: Install composer and dependencies | ||
run: composer install --classmap-authoritative | ||
|
||
- name: Run tests | ||
run: ./vendor/bin/phpunit tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build | ||
composer.lock | ||
vendor | ||
.idea | ||
.idea | ||
.phpunit.* | ||
phpunit.xml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,18 @@ | |
"role": "Developer" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"url": "[email protected]:ovos/php-library.git" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.4", | ||
"eloquent/pathogen": "^0.6.1" | ||
"php": ">8.1", | ||
"ovos/php-library": "dev-release/3.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit" : "~4.0||~5.0||~6.0", | ||
"squizlabs/php_codesniffer": "^2.3" | ||
"phpunit/phpunit": "10.x" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
@@ -37,7 +42,7 @@ | |
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0-dev" | ||
"dev-master": "2.0-dev" | ||
} | ||
}, | ||
"config": { | ||
|
Oops, something went wrong.