From c6ee5e097479c2743fa40dbd0578d567c4765aa1 Mon Sep 17 00:00:00 2001
From: Mior Muhammad Zaki <crynobone@gmail.com>
Date: Fri, 4 Sep 2020 08:31:08 +0800
Subject: [PATCH] Setup github actions.

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
---
 .github/workflows/laravel-tests.yml | 48 ++---------------------------
 composer.json                       |  3 +-
 2 files changed, 4 insertions(+), 47 deletions(-)

diff --git a/.github/workflows/laravel-tests.yml b/.github/workflows/laravel-tests.yml
index bda08c1..44890d4 100644
--- a/.github/workflows/laravel-tests.yml
+++ b/.github/workflows/laravel-tests.yml
@@ -7,42 +7,6 @@ on:
     - cron: '0 0 * * *'
 
 jobs:
-  tests-on-php71:
-    runs-on: ubuntu-latest
-    strategy:
-      fail-fast: false
-      matrix:
-        php: [7.1]
-        laravel: [5.8, 5.7, 5.6, 5.5]
-
-    name: PHP${{ matrix.php }} with Laravel ${{ matrix.laravel }}
-
-    steps:
-      - name: Checkout code
-        uses: actions/checkout@v1
-
-      - name: Cache dependencies
-        uses: actions/cache@v2
-        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
-          coverage: none
-
-      - name: Install dependencies
-        run: |
-          composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
-          composer update --prefer-dist --no-interaction --no-suggest
-      - name: Execute tests
-        run: vendor/bin/phpunit --exclude-group=redis-auth
-        env:
-          REDIS_HOST: redis
-
   tests-on-php72:
     runs-on: ubuntu-latest
     strategy:
@@ -75,9 +39,7 @@ jobs:
           composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
           composer update --prefer-dist --no-interaction --no-suggest
       - name: Execute tests
-        run: vendor/bin/phpunit --exclude-group=redis-auth
-        env:
-          REDIS_HOST: redis
+        run: vendor/bin/phpunit
 
 
   tests-on-php73:
@@ -112,9 +74,7 @@ jobs:
           composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
           composer update --prefer-dist --no-interaction --no-suggest
       - name: Execute tests
-        run: vendor/bin/phpunit --exclude-group=redis-auth
-        env:
-          REDIS_HOST: redis
+        run: vendor/bin/phpunit
 
   tests-on-php74:
     runs-on: ubuntu-latest
@@ -148,6 +108,4 @@ jobs:
           composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
           composer update --prefer-dist --no-interaction --no-suggest
       - name: Execute tests
-        run: vendor/bin/phpunit --exclude-group=redis-auth
-        env:
-          REDIS_HOST: redis
+        run: vendor/bin/phpunit
diff --git a/composer.json b/composer.json
index ea53eb3..b862242 100644
--- a/composer.json
+++ b/composer.json
@@ -24,8 +24,7 @@
         "thecodingmachine/discovery": "^1.2"
     },
     "require-dev": {
-        "orchestra/testbench": "^3.6|^3.7|^3.8|^4.0|^5.0",
-        "phpunit/phpunit": "^7.0|^8.0|^9.0",
+        "orchestra/testbench": "^3.5 || ^4.0 || ^5.0",
         "mockery/mockery": "^1.0"
     },
     "autoload": {