From e996af0521a4ea0087f8da2110a4b4496d9cd5b3 Mon Sep 17 00:00:00 2001 From: Robert Allport Date: Wed, 29 Dec 2021 20:31:11 +0000 Subject: [PATCH 1/4] Migrate to GitHub Actions --- .scrutinizer.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .scrutinizer.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 504e3b4..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,18 +0,0 @@ -filter: - excluded_paths: [tests/*, vendor/*] - -checks: - php: - remove_extra_empty_lines: true - remove_php_closing_tag: true - remove_trailing_whitespace: true - fix_use_statements: - remove_unused: true - preserve_multiple: false - preserve_blanklines: true - order_alphabetically: true - fix_php_opening_tag: true - fix_linefeed: true - fix_line_ending: true - fix_identation_4spaces: true - fix_doc_comments: true From 6d1b4cdd6953db8da40bf860aa9d594e07b1d201 Mon Sep 17 00:00:00 2001 From: Robert Allport Date: Wed, 29 Dec 2021 20:32:22 +0000 Subject: [PATCH 2/4] Create run-tests-laravel-7.yml --- .github/workflows/run-tests-laravel-7.yml | 52 +++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/run-tests-laravel-7.yml diff --git a/.github/workflows/run-tests-laravel-7.yml b/.github/workflows/run-tests-laravel-7.yml new file mode 100644 index 0000000..666449b --- /dev/null +++ b/.github/workflows/run-tests-laravel-7.yml @@ -0,0 +1,52 @@ +name: run-tests-laravel-7 + +on: [push, pull_request] + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: [8.0, 7.4, 7.2] + laravel: [7.*, 6.*, 5.8.*] + dependency-version: [prefer-lowest, prefer-stable] + include: + - laravel: 7.* + testbench: 5.* + - laravel: 6.* + testbench: 4.* + - laravel: 5.8.* + testbench: 3.8.* + exclude: + - laravel: 5.8.* + php: 8.0 + - laravel: 5.8.* + php: 7.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: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv + coverage: none + + - name: Install dependencies + run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" --no-interaction --no-update + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + - name: Execute tests + run: vendor/bin/phpunit --color=always tests From 55e05e44257c03efa6de3555be0474363e3f4d39 Mon Sep 17 00:00:00 2001 From: Robert Allport Date: Wed, 29 Dec 2021 20:32:49 +0000 Subject: [PATCH 3/4] Create run-tests-laravel-8.yml --- .github/workflows/run-tests-laravel-8.yml | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/run-tests-laravel-8.yml diff --git a/.github/workflows/run-tests-laravel-8.yml b/.github/workflows/run-tests-laravel-8.yml new file mode 100644 index 0000000..21b46cc --- /dev/null +++ b/.github/workflows/run-tests-laravel-8.yml @@ -0,0 +1,43 @@ +name: run-tests-laravel-8 + +on: [push, pull_request] + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + php: [8.0, 7.4] + laravel: [8.*] + dependency-version: [prefer-stable] + include: + - laravel: 8.* + testbench: 6.* + + 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: curl, mbstring, zip, pcntl, sqlite, pdo_sqlite, iconv + 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 + - name: Execute tests + run: vendor/bin/phpunit --color=always tests From 505fe516e0cbe1dbbf0bbe542130899651d68f44 Mon Sep 17 00:00:00 2001 From: Robert Allport Date: Wed, 29 Dec 2021 20:36:16 +0000 Subject: [PATCH 4/4] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0d56e31..ad26433 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ +![](https://banners.beyondco.de/Laravel%20Redirect%20Response%20Macros.png?theme=light&packageManager=composer+require&packageName=f9webltd%2Flaravel-redirect-response-macros&pattern=brickWall&style=style_1&description=Some+super+useful+redirect+response+macros+to+simplify+your+Laravel+application&md=1&showWatermark=0&fontSize=100px&images=code) + + [![Packagist Version](https://img.shields.io/packagist/v/f9webltd/laravel-redirect-response-macros?style=flat-square)](https://packagist.org/packages/f9webltd/laravel-redirect-response-macros) -[![Scrutinizer coverage (GitHub/BitBucket)](https://img.shields.io/scrutinizer/coverage/g/f9webltd/laravel-redirect-response-macros/master?style=flat-square)](https://scrutinizer-ci.com/g/f9webltd/laravel-redirect-response-macros/?branch=master) -[![Scrutinizer code quality (GitHub/Bitbucket)](https://img.shields.io/scrutinizer/quality/g/f9webltd/laravel-redirect-response-macros?style=flat-square)](https://scrutinizer-ci.com/g/f9webltd/laravel-redirect-response-macros/?branch=master) -![Travis (.org)](https://travis-ci.com/f9webltd/laravel-redirect-response-macros.svg?branch=master&status=passed) +[![run-tests-laravel-8](https://img.shields.io/github/workflow/status/f9webltd/laravel-redirect-response-macros/run-tests-laravel-8?style=flat-square)](https://github.com/f9webltd/laravel-redirect-response-macros/actions) [![StyleCI Status](https://github.styleci.io/repos/278581318/shield)](https://github.styleci.io/repos/278581318) [![Packagist License](https://img.shields.io/packagist/l/f9webltd/laravel-redirect-response-macros?style=flat-square)](https://packagist.org/packages/f9webltd/laravel-redirect-response-macros)