Skip to content

Commit

Permalink
Laravel 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
bcismariu committed Sep 29, 2020
1 parent 0c5ca89 commit 4e0ee4f
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 24 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Testing

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [7.1, 7.2, 7.3, 7.4]
laravel: [5.8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 5.8.*
testbench: 3.8.*

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}

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

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --no-progress
- name: Show relevant dependencies
run: |
composer show | grep -e "laravel/framework \|guzzlehttp/guzzle \|phpunit/phpunit \|orchestra/testbench "
- name: Execute tests
run: vendor/bin/phpunit
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# iMemento Clients

[![Build Status](https://travis-ci.org/mementohub/clients.svg?branch=master)](https://travis-ci.org/mementohub/clients)
[![Docs Status](https://readthedocs.org/projects/imemento-clients/badge/?version=latest)](https://imemento-clients.readthedocs.io)
[![Latest Stable Version](https://poser.pugx.org/imemento/clients/v/stable)](https://packagist.org/packages/imemento/clients)
[![License](https://poser.pugx.org/imemento/clients/license)](https://packagist.org/packages/imemento/clients)
[![Total Downloads](https://poser.pugx.org/imemento/clients/downloads)](https://packagist.org/packages/imemento/clients)
[![Build Status](https://github.com/mementohub/clients/workflows/Testing/badge.svg)](https://github.com/mementohub/clients/actions)
[![Latest Stable Version](https://img.shields.io/packagist/v/imemento/clients)](https://packagist.org/packages/imemento/clients)
[![License](https://img.shields.io/packagist/l/imemento/clients)](https://packagist.org/packages/imemento/clients)
[![Total Downloads](https://img.shields.io/packagist/dt/imemento/clients)](https://packagist.org/packages/imemento/clients)

Client library classes for iMemento Services

Expand Down
16 changes: 9 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"require": {
"php": "^7.1",
"opis/closure": "^3.1",
"illuminate/support": "^7.0 || ^8.0",
"illuminate/contracts": "^7.0 || ^8.0",
"guzzlehttp/guzzle": ">=6.3 <8.0",
"imemento/sdk-auth": "^0.1.0"
"illuminate/support": "5.8.*",
"illuminate/contracts": "5.8.*",
"guzzlehttp/guzzle": "^6.3 || ^7.0",
"imemento/sdk-auth": "~5.8.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0",
"orchestra/testbench": "^5.0 || ^6.0"
"phpunit/phpunit": "^7.0",
"orchestra/testbench": "3.8.*"
},
"autoload": {
"psr-4": {
Expand All @@ -37,5 +37,7 @@
"iMemento\\Clients\\ServiceProvider"
]
}
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
1 change: 0 additions & 1 deletion tests/Unit/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public function testItFailsAfterRetries()
new Response(400, [], '{}'),
new Response(401, [], '{}'),
new Response(402, [], '{}'),
new Response(200, [], '{}'),
]);

$client->retries(2, function () { return 100; })->call();
Expand Down

0 comments on commit 4e0ee4f

Please sign in to comment.