From bff7360091bd61e63321e1eafd58698c80f2f181 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 15 Jul 2024 19:41:58 +1000 Subject: [PATCH] CI updates, readme updates, laravel 10 updates (#71) * Adds ci and readme updates * Laravel 10 updates for dev * Probably don't need this, can do it in test setup if need be --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ composer.json | 8 ++++---- readme.md | 4 +++- 3 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4c44b67 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI Tests + +on: + pull_request: + push: + branches: + - master + - v* + +jobs: + tests: + runs-on: ubuntu-22.04 + + strategy: + fail-fast: false + matrix: + stability: [prefer-stable] + php: [8.1, 8.2] + laravel: [10] + + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + # Docs: https://github.com/shivammathur/setup-php + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip + ini-values: error_reporting=E_ALL + tools: composer:v2 + # todo: Add + coverage: none + + - name: Install dependencies + run: | + composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update + composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader + + - name: Run phpunit tests + run: composer test \ No newline at end of file diff --git a/composer.json b/composer.json index 3fad882..c9740a3 100644 --- a/composer.json +++ b/composer.json @@ -18,12 +18,12 @@ }, "require-dev": { "ext-json": "*", - "beyondcode/laravel-dump-server": "^1.8", + "beyondcode/laravel-dump-server": "^1.9", "fakerphp/faker": "^1.18", "mockery/mockery": "^1.5", - "nunomaduro/collision": "^7.0", + "nunomaduro/collision": "^7.10", "phpunit/phpunit": "^10.1", - "orchestra/testbench": "^7.6", + "orchestra/testbench": "^8.20", "laravel/legacy-factories": "^1.0" }, "autoload": { @@ -53,6 +53,6 @@ "minimum-stability": "dev", "prefer-stable": true, "scripts": { - "test": "./vendor/bin/phpunit --colors=always -v --testdox" + "test": "./vendor/bin/phpunit --colors=always --testdox" } } diff --git a/readme.md b/readme.md index 91426bb..af9e5e8 100644 --- a/readme.md +++ b/readme.md @@ -13,8 +13,10 @@ Please go to [The boilerplate wiki](https://github.com/specialtactics/laravel-ap | Laravel Version | Boilerplate Version | Minimum PHP Version | Support Status | |-----------------|---------------------|---------------------|----------------| +| 11.x | 6.x.x | 8.2 | Supported | +| 10.x | 5.x.x | 8.1 | Supported | | 9.x | 4.x.x | 8.0 | Supported | -| 8.x | 3.x.x | 7.3 | Supported | +| 8.x | 3.x.x | 7.3 | Not Supported | | 7.x | 2.x.x | 7.2.5 | Not Supported | | 6.x | 1.1.x | 7.2 | Not Supported |