Skip to content

Commit

Permalink
Replace Travis CI with GitHub Actions (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive authored Nov 30, 2020
1 parent 9c56e05 commit c5bcd07
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 35 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on: [ push, pull_request ]

jobs:
test:
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest, windows-latest ]
php: [ "8.0", "7.4", "7.3", "7.2" ]

name: PHP ${{ matrix.php }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}

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

- name: Cache dependencies
uses: actions/cache@v2
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 }}
coverage: none

- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-interaction --no-suggest

- name: Execute tests
run: vendor/bin/phpunit
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

17 changes: 9 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@
"require": {
"php": "^7.2|^8.0",
"anahkiasen/html-object": "~1.4",
"illuminate/config": "~5.0|^6.0|^7.0|^8.0",
"illuminate/container": "~5.0|^6.0|^7.0|^8.0",
"illuminate/http": "~5.0|^6.0|^7.0|^8.0",
"illuminate/routing": "~5.0|^6.0|^7.0|^8.0",
"illuminate/session": "~5.0|^6.0|^7.0|^8.0",
"illuminate/translation": "~5.0|^6.0|^7.0|^8.0",
"illuminate/support": "~5.0|^6.0|^7.0|^8.0"
"illuminate/config": "^5.1.3|^6.0|^7.0|^8.0",
"illuminate/container": "^5.1.3|^6.0|^7.0|^8.0",
"illuminate/contracts": "^5.1.3|^6.0|^7.0|^8.0",
"illuminate/http": "^5.1.3|^6.0|^7.0|^8.0",
"illuminate/routing": "^5.1.3|^6.0|^7.0|^8.0",
"illuminate/session": "^5.1.3|^6.0|^7.0|^8.0",
"illuminate/translation": "^5.1.3|^6.0|^7.0|^8.0",
"illuminate/support": "^5.1.3|^6.0|^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"mockery/mockery": "^1.3",
"illuminate/database": "~5.0|^6.0|^7.0|^8.0"
"illuminate/database": "^5.1.3|^6.0|^7.0|^8.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit c5bcd07

Please sign in to comment.