Skip to content

Commit

Permalink
Merge pull request #43 from ARCANEDEV/develop
Browse files Browse the repository at this point in the history
Adding Laravel 9 Support
  • Loading branch information
arcanedev-maroc authored Mar 6, 2022
2 parents 224a31a + 412528f commit dee8adf
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 34 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,30 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, 8.0]
php: [8.0, 8.1]
dependency-version: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-8.x-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
key: dependencies-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: xdebug
tools: composer:v2
coverage: pcov

- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
Expand All @@ -42,5 +44,5 @@ jobs:
- name: Scrutinizer CI
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
composer require scrutinizer/ocular --dev -W
vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ checks:
tools:
external_code_coverage:
timeout: 600
runs: 6
runs: 4
php_code_sniffer:
enabled: true
config:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2020 | ARCANEDEV <[email protected]> - Laravel Notes
Copyright (c) ARCANEDEV <[email protected]> - Laravel Notes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This Laravel Notes will allow you to add a notes system into your Laravel projec
* Easy setup &amp; configuration.
* Well documented &amp; IDE Friendly.
* Well tested with maximum code quality.
* Laravel `5.1` to `8.x` are supported.
* Laravel `5.1` to `9.x` are supported.
* Made with :heart: &amp; :coffee:.

## Table of contents
Expand All @@ -42,7 +42,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
- [ARCANEDEV][link-author]
- [All Contributors][link-contributors]

[badge_laravel]: https://img.shields.io/badge/For%20Laravel-5.1%20to%208.x-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/For%20Laravel-5.1%20to%209.x-orange.svg?style=flat-square
[badge_license]: https://img.shields.io/packagist/l/arcanedev/laravel-notes.svg?style=flat-square
[badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/LaravelNotes/run-tests?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/LaravelNotes.svg?style=flat-square
Expand Down
18 changes: 0 additions & 18 deletions _docs/0-Home.md

This file was deleted.

3 changes: 3 additions & 0 deletions _docs/1-Installation-and-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

| Laravel | Laravel Notes |
|:-----------------------------|:-----------------------------------------|
| ![Laravel v9.x][laravel_9_x] | ![Laravel Notes v9.x][laravel_notes_9_x] |
| ![Laravel v8.x][laravel_8_x] | ![Laravel Notes v8.x][laravel_notes_8_x] |
| ![Laravel v7.x][laravel_7_x] | ![Laravel Notes v7.x][laravel_notes_7_x] |
| ![Laravel v6.x][laravel_6_x] | ![Laravel Notes v6.x][laravel_notes_6_x] |
Expand All @@ -22,6 +23,7 @@
| ![Laravel v5.2][laravel_5_2] | ![Laravel Notes v0.x][laravel_notes_0_x] |
| ![Laravel v5.1][laravel_5_1] | ![Laravel Notes v0.x][laravel_notes_0_x] |

[laravel_9_x]: https://img.shields.io/badge/version-9.x-blue.svg?style=flat-square "Laravel v9.x"
[laravel_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "Laravel v8.x"
[laravel_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "Laravel v7.x"
[laravel_6_x]: https://img.shields.io/badge/version-6.x-blue.svg?style=flat-square "Laravel v6.x"
Expand All @@ -34,6 +36,7 @@
[laravel_5_2]: https://img.shields.io/badge/version-5.2-blue.svg?style=flat-square "Laravel v5.2"
[laravel_5_1]: https://img.shields.io/badge/version-5.1-blue.svg?style=flat-square "Laravel v5.1"

[laravel_notes_9_x]: https://img.shields.io/badge/version-9.x-blue.svg?style=flat-square "LaravelNotes v9.x"
[laravel_notes_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "LaravelNotes v8.x"
[laravel_notes_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "LaravelNotes v7.x"
[laravel_notes_6_x]: https://img.shields.io/badge/version-6.x-blue.svg?style=flat-square "LaravelNotes v6.x"
Expand Down
15 changes: 10 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"arcanedev/support": "^8.0"
"php": "^8.0",
"arcanedev/support": "^9.0"
},
"require-dev": {
"mockery/mockery": "^1.4.2",
"orchestra/testbench": "^6.4",
"phpunit/phpunit": "^9.3.3"
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.4.4",
"laravel/framework": "^9.0",
"orchestra/testbench-core": "^7.0",
"phpunit/phpunit": "^9.5.10"
},
"autoload": {
"psr-4": {
Expand All @@ -37,6 +39,9 @@
"test:dox": "phpunit --testdox"
},
"extra": {
"branch-alias": {
"dev-develop": "9.x-dev"
},
"laravel": {
"providers": [
"Arcanedev\\LaravelNotes\\LaravelNotesServiceProvider"
Expand Down
4 changes: 2 additions & 2 deletions database/migrations/2016_10_00_000001_create_notes_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @see \Arcanedev\LaravelNotes\Models\Note
*/
class CreateNotesTable extends Migration
return new class extends Migration
{
/* -----------------------------------------------------------------
| Constructor
Expand Down Expand Up @@ -52,4 +52,4 @@ public function up(): void
->onDelete('cascade');
});
}
}
};

0 comments on commit dee8adf

Please sign in to comment.