From 3255ec7af5dfa1f4da8658ebb4cc6957ad802d37 Mon Sep 17 00:00:00 2001
From: Christophe Tremblay <ctremblay@exolnet.com>
Date: Thu, 8 Jul 2021 12:05:26 -0400
Subject: [PATCH 1/4] drop support for PHP 7.2

---
 .travis.yml   | 1 -
 composer.json | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index bbce72d..9461c51 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,6 @@
 language: php
 
 php:
-  - 7.2
   - 7.3
   - 7.4
 
diff --git a/composer.json b/composer.json
index 3913209..faef910 100644
--- a/composer.json
+++ b/composer.json
@@ -26,7 +26,7 @@
         }
     ],
     "require": {
-        "php": ">=7.2",
+        "php": "^7.3",
         "exolnet/envoy": "^1.107.0"
     },
     "require-dev": {

From e232bff42ddfd07b52aa37d0bfa7f4ccf0c74430 Mon Sep 17 00:00:00 2001
From: Christophe Tremblay <ctremblay@exolnet.com>
Date: Thu, 8 Jul 2021 13:32:25 -0400
Subject: [PATCH 2/4] Add support for PHP 8.0

---
 .travis.yml   | 1 +
 composer.json | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 9461c51..fce6872 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,7 @@ language: php
 php:
   - 7.3
   - 7.4
+  - 8.0
 
 env:
   matrix:
diff --git a/composer.json b/composer.json
index faef910..bd65307 100644
--- a/composer.json
+++ b/composer.json
@@ -26,7 +26,7 @@
         }
     ],
     "require": {
-        "php": "^7.3",
+        "php": "^7.3|^8.0",
         "exolnet/envoy": "^1.107.0"
     },
     "require-dev": {

From 2b2c65073f9da88beafb6ccbf54854b65b12acdc Mon Sep 17 00:00:00 2001
From: Christophe Tremblay <ctremblay@exolnet.com>
Date: Thu, 8 Jul 2021 13:35:35 -0400
Subject: [PATCH 3/4] update composer dependencies

---
 composer.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/composer.json b/composer.json
index bd65307..17a598a 100644
--- a/composer.json
+++ b/composer.json
@@ -30,9 +30,9 @@
         "exolnet/envoy": "^1.107.0"
     },
     "require-dev": {
-        "mockery/mockery": "^1.3",
+        "mockery/mockery": "^1.4.3",
         "phpunit/phpunit": "^8.0",
-        "squizlabs/php_codesniffer": "^3.3.2"
+        "squizlabs/php_codesniffer": "^3.6.0"
     },
     "autoload": {
         "psr-4": {

From 38022d56a64c89b4981cde019bb2ad732e3311fd Mon Sep 17 00:00:00 2001
From: Christophe Tremblay <ctremblay@exolnet.com>
Date: Fri, 10 Sep 2021 12:01:41 -0400
Subject: [PATCH 4/4] Replace Travis by Github Action

Ref #33325
---
 .github/workflows/tests.yml | 50 +++++++++++++++++++++++++++++++++++++
 .travis.yml                 | 25 -------------------
 README.md                   |  2 +-
 3 files changed, 51 insertions(+), 26 deletions(-)
 create mode 100644 .github/workflows/tests.yml
 delete mode 100644 .travis.yml

diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..1a9766a
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,50 @@
+name: tests
+
+on: [push, pull_request]
+
+jobs:
+  tests:
+    runs-on: ubuntu-latest
+
+    strategy:
+      fail-fast: true
+      matrix:
+        php: [7.3, 7.4, 8.0]
+        laravel: [6.*, 7.*, 8.*]
+        dependency-version: [prefer-lowest, prefer-stable]
+        include:
+          - laravel: 8.*
+            testbench: 6.*
+          - 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@v2
+
+      - 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: json, dom, curl, libxml, mbstring
+          coverage: none
+
+      - 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: composer test
+
+      - name: Execute lint
+        run: composer lint
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index fce6872..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-language: php
-
-php:
-  - 7.3
-  - 7.4
-  - 8.0
-
-env:
-  matrix:
-    - COMPOSER_FLAGS="--prefer-lowest"
-    - COMPOSER_FLAGS=""
-
-sudo: false
-
-cache:
-  directories:
-    - $HOME/.composer/cache
-
-before_script:
-  - travis_retry composer self-update
-  - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist -vvv
-
-script:
-  - composer test
-  - composer lint
diff --git a/README.md b/README.md
index 905a2d8..ba66718 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
 
 [![Latest Stable Version](https://img.shields.io/packagist/v/eXolnet/laravel-envoy.svg?style=flat-square)](https://packagist.org/packages/eXolnet/laravel-envoy)
 [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
-[![Build Status](https://img.shields.io/travis/eXolnet/laravel-envoy/master.svg?style=flat-square)](https://travis-ci.org/eXolnet/laravel-envoy)
+[![Build Status](https://img.shields.io/github/workflow/status/eXolnet/laravel-envoy/tests?label=tests&style=flat-square)](https://github.com.org/eXolnet/laravel-envoy/actions?query=workflow%3Atests)
 [![Total Downloads](https://img.shields.io/packagist/dt/eXolnet/laravel-envoy.svg?style=flat-square)](https://packagist.org/packages/eXolnet/laravel-envoy)
 
 This repository contains automated deployment template for Laravel Envoy. The deployment flow is based on [Capistrano](http://capistranorb.com/).