Skip to content

Commit

Permalink
Update dependenices (#28)
Browse files Browse the repository at this point in the history
* Update dependencies, gitignore, and copyright date

* Use github actions

* Upgrade symfony console to make tests pass in CI

* Add minimum mockery version
  • Loading branch information
Jack97 committed Mar 12, 2020
1 parent 1653b46 commit 8d22540
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 4,699 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.4, 7.3, 7.2]
laravel: [^7.0, ^6.0, ~5.8.0]
dependency-versions: [prefer-lowest, prefer-stable]
include:
- laravel: ^7.0
testbench: ^5.0
- laravel: ^6.0
testbench: ^4.0
- laravel: ~5.8.0
testbench: ~3.8.0

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

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: |
composer require "symfony/console:>=4.4" "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-versions }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/.idea
/.vscode
/vendor
/.phpunit.result.cache
.DS_Store
.phpunit.result.cache
composer.lock
phpunit.xml
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Optix Solutions <dev@optixsolutions.co.uk>
Copyright (c) 2020 Optix Solutions <dev@optixsolutions.co.uk>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
}
],
"require": {
"php": "^7.1.3",
"laravel/framework": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0",
"php": "^7.2",
"laravel/framework": "~5.8.0|^6.0|^7.0",
"intervention/image": "^2.5"
},
"require-dev": {
"orchestra/testbench": "^3.8|^4.0"
"orchestra/testbench": "~3.8.0|^4.0|^5.0",
"mockery/mockery": "^1.2.3"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 8d22540

Please sign in to comment.