Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Mar 3, 2020
1 parent ac3e7b7 commit 19e89cc
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 40 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
@@ -0,0 +1 @@
custom: https://spatie.be/open-source/support-us
46 changes: 46 additions & 0 deletions .github/workflows/run-tests.yml
@@ -0,0 +1,46 @@
name: run-tests

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [7.4]
laravel: [6.*, 7.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 7.*
testbench: 5.*
- laravel: 6.*
testbench: 4.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

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

- name: Cache dependencies
uses: actions/cache@v1
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: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
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
- name: Execute tests
run: vendor/bin/phpunit
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

12 changes: 7 additions & 5 deletions composer.json
Expand Up @@ -23,15 +23,15 @@
],
"require": {
"php": "^7.2",
"laravel/framework": "~5.8.4|^6.0"
"laravel/framework": "^6.0|^7.0"
},
"require-dev": {
"amphp/parallel": "^0.2.0",
"amphp/parallel-functions": "^0.1.2",
"mockery/mockery": "^1.0",
"orchestra/testbench": "~3.8.0|^4.0",
"phpunit/phpunit": "^8.0",
"symfony/stopwatch": "^4.0"
"orchestra/testbench": "^4.0|^5.0",
"phpunit/phpunit": "^8.0|^9.0",
"symfony/stopwatch": "^4.0|^5.0"
},
"suggest": {
"amphp/parallel-functions": "Required when using the parallel*-macros."
Expand All @@ -58,5 +58,7 @@
"Spatie\\CollectionMacros\\CollectionMacroServiceProvider"
]
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit 19e89cc

Please sign in to comment.