Skip to content

Commit

Permalink
php8 compatibility + setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcing committed Apr 22, 2024
1 parent 5c4166c commit 094c538
Show file tree
Hide file tree
Showing 14 changed files with 1,940 additions and 187 deletions.
14 changes: 7 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/.scrutinizer.yml export-ignore
/tests export-ignore
/docs export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.phpunit.cache export-ignore
/.phpunit.result.cache export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
/docs export-ignore
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build
composer.lock
vendor
.idea
.idea
.phpunit.*
phpunit.xml
23 changes: 0 additions & 23 deletions .scrutinizer.yml

This file was deleted.

1 change: 0 additions & 1 deletion .styleci.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

22 changes: 0 additions & 22 deletions CHANGELOG.md

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE.md

This file was deleted.

27 changes: 1 addition & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,5 @@ A set of tools to help with handling manifest.json files generated by webpack pl
Via Composer

``` bash
$ composer require ovos/webpack-manifest
$ composer require ovos/webpack-manifest2
```

## Usage

``` php
$skeleton = new Ovos\Webpack();
echo $skeleton->echoPhrase('Hello, League!');
```

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/ovos/webpack-manifest.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/ovos/webpack-manifest/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/ovos/webpack-manifest.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/ovos/webpack-manifest.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/ovos/webpack-manifest.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/ovos/webpack-manifest
[link-travis]: https://travis-ci.org/ovos/webpack-manifest
[link-scrutinizer]: https://scrutinizer-ci.com/g/ovos/webpack-manifest/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/ovos/webpack-manifest
[link-downloads]: https://packagist.org/packages/ovos/webpack-manifest
[link-author]: https://github.com/mh-ovos
15 changes: 10 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -37,7 +42,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
"dev-master": "2.0-dev"
}
},
"config": {
Expand Down
Loading

0 comments on commit 094c538

Please sign in to comment.