Skip to content

Commit

Permalink
dump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jarektkaczyk committed Dec 5, 2020
1 parent 259ea5c commit 0b45191
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 19 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [7.4]
dependency-version: [prefer-stable]

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

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Install dependencies
run: |
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: composer test
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
{
"name": "Jarek Tkaczyk",
"email": "jarek@softonsofa.com",
"homepage": "http://softonsofa.com/",
"homepage": "https://softonsofa.com/",
"role": "Developer"
}
],
"require": {
"php": ">=7.0",
"illuminate/database": "^5.4|^6.0|^7.0"
"illuminate/database": ">=5.4"
},
"require-dev": {
"crysalead/kahlan": "~1.1"
"kahlan/kahlan": "~1.1"
},
"autoload": {
"psr-4": {
Expand All @@ -29,5 +29,8 @@
},
"config": {
"preferred-install": "dist"
},
"scripts": {
"test": "vendor/bin/kahlan"
}
}

0 comments on commit 0b45191

Please sign in to comment.