Skip to content
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
18 changes: 18 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on: [push, pull_request]

name: Lint

jobs:
composer-normalize:
name: composer-normalize

runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2

- name: "Run composer-normalize"
uses: docker://localheinz/composer-normalize-action:0.5.2
with:
args: --dry-run
47 changes: 47 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: PHP ${{ matrix.php-version }} + Zabbix ${{ matrix.zabbix-version }}

runs-on: ubuntu-latest

continue-on-error: ${{ matrix.allowed-to-fail }}

strategy:
matrix:
php-version:
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
allowed-to-fail: [false]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2

- name: Add PHPUnit matcher
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: "Install Composer dependencies"
uses: "ramsey/composer-install@v1"

- name: Run Tests
run: composer test-cover

- name: Publish test coverage
run: bash <(curl -s https://codecov.io/bash) -t e4de22ca-5f85-40e5-8f90-4c633cc4df9b
33 changes: 19 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
{
"name": "opsway/zohobooks-api",
"description": "PHP SDK for ZohoBooks API",
"license": "MIT",
"keywords": [
"Zoho Books",
"API",
"SDK",
"library"
],
"support": {
"issues": "https://github.com/opsway/zohobooks-api/issues"
},
"prefer-stable": true,
"license": "MIT",
"require": {
"php": "^5.6 | ^7.0",
"php": "^5.6 || ^7.0",
"guzzlehttp/guzzle": "^6.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "^2.7"
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "0.1-dev"
}
},
"autoload": {
"psr-4": {
"OpsWay\\ZohoBooks\\": "src/"
}
},
"autoload-dev": {
"psr-4": { "OpsWay\\ZohoBooks\\Tests\\": "tests/" }
},
"extra": {
"branch-alias": {
"dev-master": "0.1-dev"
"psr-4": {
"OpsWay\\ZohoBooks\\Tests\\": "tests/"
}
},
"prefer-stable": true,
"scripts": {
"test": "phpunit --no-coverage",
"test-cover": "phpunit",
"cs-check": "phpcs -n --standard=PSR2 --extensions=php src/",
"cs-fix": "phpcbf --standard=PSR2 --extensions=php src/"
"cs-fix": "phpcbf --standard=PSR2 --extensions=php src/",
"test": "phpunit --no-coverage",
"test-cover": "phpunit"
},
"support": {
"issues": "https://github.com/opsway/zohobooks-api/issues"
}
}