Skip to content

Commit

Permalink
CI updates, readme updates, laravel 10 updates (#71)
Browse files Browse the repository at this point in the history
* Adds ci and readme updates

* Laravel 10 updates for dev

* Probably don't need this, can do it in test setup if need be
  • Loading branch information
specialtactics authored Jul 15, 2024
1 parent 7963c3a commit bff7360
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 5 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
}
}
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down

0 comments on commit bff7360

Please sign in to comment.