Skip to content

Commit

Permalink
support for laravel 10 (#40)
Browse files Browse the repository at this point in the history
* update readme
  • Loading branch information
veelasky committed Feb 15, 2023
1 parent 74664f7 commit 9f5d8e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,38 @@ jobs:
strategy:
matrix:
php: [ 8.0, 8.1, 8.2]
laravel: [9.*, 8.*, 7.*]
laravel: [10.*, 9.*, 8.*, 7.*]
exclude:
- laravel: 7.*
php: 8.1
- laravel: 7.*
php: 8.2
- laravel: 10.*
php: 8.0
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: ^5.2

name: php ${{ matrix.php }} on laravel ${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug
extensions: bcmath, sqlite

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
Expand All @@ -47,21 +47,23 @@ jobs:
${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.php }}
${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
${{ runner.os }}-composer-
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
- name: Test
- name: Test phpunit 9
if: matrix.laravel != '10.*'
run: ./vendor/bin/phpunit

- name: Test on phpunit 10
if: matrix.laravel == '10.*'
run: |
./vendor/bin/phpunit --migrate-configuration
./vendor/bin/phpunit
- name: send coverage to codecov.io
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./clover.xml

# - name: send coverage to codacy.com
# uses: codacy/codacy-coverage-reporter-action@master
# with:
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Automatic HashId generator for your eloquent model.

### Version Compatibilities

| Laravel HashId | PHP Version | Laravel 5.* | Laravel 6.* | Laravel 7.* | Laravel 8.* | Laravel 9.* |
|------------------|:----------------------:|:------------------: |:------------------: |:------------------: |:------------------: |:------------------: |
| `1.x` |`>=7.0` | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: |
| `2.x` |`>=7.2` - `<= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| `3.0` | `>=7.4` \|\| `>= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| `3.1` | `>= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Laravel HashId | PHP Version | Laravel 5.* | Laravel 6.* | Laravel 7.* | Laravel 8.* | Laravel 9.* | Laravel 10.* |
|------------------|:----------------------:|:------------------: |:------------------: |:------------------: |:------------------: |:------------------: |:------------------: |
| `1.x` |`>=7.0` | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: |
| `2.x` |`>=7.2` - `<= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| `3.0` | `>=7.4` \|\| `>= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| `3.1` | `>= 8.0` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |

### Install

Expand Down

0 comments on commit 9f5d8e9

Please sign in to comment.