Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8 support #40

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/.github export-ignore
/phpunit.xml.dist export-ignore
/.scrutinizer.yml export-ignore
/tests export-ignore
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on: [push]

jobs:
test:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: [
'7.3',
'7.4',
'8.0'
]

steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, xmlrpc
coverage: xdebug
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install --no-ansi --no-interaction --no-progress --optimize-autoloader
- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Test with phpunit
run: vendor/bin/phpunit

composer-normalize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Composer normalize
uses: localheinz/[email protected]

security-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache-db
with:
path: ~/.symfony/cache
key: db
- uses: symfonycorp/security-checker-action@v2
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
vendor/
composer.lock
.idea
.DS_Store
TODO.md
Expand Down
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

38 changes: 23 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
{
"name": "edujugon/laradoo",
"description": "Odoo ERP API for Laravel",
"keywords": ["odoo","laravel","erp","package"],
"keywords": [
"odoo",
"laravel",
"erp",
"package"
],
"license": "MIT",
"authors": [
{
"name": "Eduardo Marcos",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"Edujugon\\Laradoo\\": "src/"
},
"files": [
"src/Support/helpers.php"
],
"classmap": ["src/ripcord"]
},
"minimum-stability": "dev",
"require": {
"php": "^5.6||^7.0",
"illuminate/support": "^5.1||^6.0||^7.0||^8.0"
"php": "^7.3 || ^8.0",
"ext-xmlrpc": "*",
"illuminate/support": "^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "~4.8||^8.0"
}
"phpunit/phpunit": "^9.0"
},
"autoload": {
"psr-4": {
"Edujugon\\Laradoo\\": "src/"
},
"classmap": [
"src/ripcord"
],
"files": [
"src/Support/helpers.php"
]
},
"minimum-stability": "dev"
}
Loading