Skip to content

Commit

Permalink
GitHub actions (#55)
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
glorand authored Apr 24, 2020
1 parent df08946 commit 94b41b5
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 3 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [7.4, 7.3, 7.2]
laravel: [7.*, 6.*]
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 }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, pdo, pdo_sqlite, sqlite

- 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: 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `glorand/laravel-model-settings` will be documented in this file

## 3.6.4 - 2020-04-24
### Fix
- github actions

## 3.6.3 - 2020-04-21
### Fix
- "empty()" - to check if the model has empty setting
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.5|^8.0|^9.0",
"orchestra/testbench": "~3.8.0|^4.0|^5.0",
"phpunit/phpunit": "^6.0|^7.5|^8.0|^9.0",
"orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0|~3.8.0|^4.0|^5.0",
"friendsofphp/php-cs-fixer": "^2.16@dev",
"josiasmontag/laravel-redis-mock": "^1.2"
"josiasmontag/laravel-redis-mock": "~1.0.0|~1.1.0|^1.2"
},
"suggest": {
"predis/predis": "Required to use settings with Redis"
Expand Down

0 comments on commit 94b41b5

Please sign in to comment.