Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/filacms 8 create test cases #11

Merged
merged 41 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
11b28e0
Save before remerging from main
jeremy-layson Feb 22, 2024
099d371
Merge branch 'main' into feature/FILACMS-8_Create_Test_Cases
jeremy-layson Feb 22, 2024
7a92859
Fully Tested Testcases
jeremy-layson Feb 26, 2024
b856002
Solve Conflicts
jeremy-layson Feb 26, 2024
b14aa1e
Pint Test Fix
jeremy-layson Feb 26, 2024
714e5e2
Save for checking:
jeremy-layson Feb 29, 2024
add9627
FILACMS-8: Fix model paths
kyoungportable Mar 4, 2024
4a0781f
FILACMS-8: Ignore results
kyoungportable Mar 4, 2024
f6d92de
FILACMS-8: Write to correct file
kyoungportable Mar 5, 2024
76bffce
No error test cases
jeremy-layson Mar 5, 2024
bfde97b
Fix lint
jeremy-layson Mar 5, 2024
a3bbe67
Add Unit Test to github action
jeremy-layson Mar 5, 2024
657d438
Require latest laravel
jeremy-layson Mar 5, 2024
ecadef5
Test new lock
jeremy-layson Mar 5, 2024
14e30fc
Try
jeremy-layson Mar 5, 2024
99c8244
Try testbench
jeremy-layson Mar 5, 2024
5bf61e0
Test new yml
kyoungportable Mar 7, 2024
0b41378
Downgrade pest
kyoungportable Mar 7, 2024
d0bd850
Allow plugin
kyoungportable Mar 7, 2024
0e316ba
Remove prefer-lowest
kyoungportable Mar 7, 2024
20bbf6a
Just run pest
kyoungportable Mar 7, 2024
8b26049
Just run pest
kyoungportable Mar 7, 2024
4e94b61
Add package providers
kyoungportable Mar 7, 2024
381cce2
Run from vendor
kyoungportable Mar 7, 2024
cbfdc63
Try PHPUnit
kyoungportable Mar 7, 2024
032a636
Update filament
kyoungportable Mar 7, 2024
bb15863
Move provider
kyoungportable Mar 7, 2024
39acf77
Move provider
kyoungportable Mar 7, 2024
d088de6
Move provider
kyoungportable Mar 7, 2024
41c4a90
Install, not update
kyoungportable Mar 7, 2024
04eb9f0
Update install
kyoungportable Mar 7, 2024
27f19ff
Revert service provider
kyoungportable Mar 7, 2024
8517529
Add intl
kyoungportable Mar 7, 2024
f94f1c7
Bah
kyoungportable Mar 7, 2024
bab3b5d
Remove ucwords
kyoungportable Mar 7, 2024
b5bb879
Merge branch 'main' of github.com:PortableStudios/fila-cms into featu…
kyoungportable Mar 7, 2024
a8538e3
And from plurals
kyoungportable Mar 7, 2024
8ddf4ef
Correct test failures from merge
kyoungportable Mar 7, 2024
7dd8d4f
Add Facade users
kyoungportable Mar 7, 2024
4281d1d
Update for save
kyoungportable Mar 7, 2024
ecdb862
Fill taxonomy_resources
kyoungportable Mar 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Laravel Pint
- name: Laravel Pint
run: php vendor/bin/pint --test

22 changes: 22 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PHPUnit

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

permissions:
contents: read

jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: PHPUnit
run: php vendor/bin/phpunit --stop-on-defect
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
vendor/*
.phpunit.result.cache
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# How to use

Then in your composer's require, add this line: `"portable/fila-cms": "@dev"`

## Installation Command

To initialize the package, you need to run the `fila-cms:install` command.
Expand Down Expand Up @@ -34,5 +36,10 @@ By inputting yes, the install command will also execute this command
After installation, you can create a user with the admin role by executing `php artisan fila-cms:make-user`.
This command will ask for field values present in your users table and automatically assigns the admin role to it.

## Testing

To run the test cases, you must set it up on a fresh laravel project. Then run `php artisan test vendor/portable/fila-cms`

## Protecting resources
Add the `IsProtectedResource` trait to your Filament resources to have them automatically obey `view <resource-name>` and `manage <resource-name>` permissions.

Add the `IsProtectedResource` trait to your Filament resources to have them automatically obey `view <resource-name>` and `manage <resource-name>` permissions.
44 changes: 41 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,52 @@
},
"require": {
"filament/filament": "^3.2",
"spatie/laravel-permission": "^6.3",
"venturecraft/revisionable": "1.*",
"awcodes/filament-tiptap-editor": "^3.0",
"mistralys/text-diff": "^2.0"
"mistralys/text-diff": "^2.0",
"spatie/laravel-permission": "^6.3",
"laravel/framework": "^10.0"
},
"require-dev": {
"laravel/sanctum": "^3.3",
"laravel/pint": "^1.14",
"larastan/larastan": "^2.9",
"squizlabs/php_codesniffer": "^3.9"
"squizlabs/php_codesniffer": "^3.9",
"orchestra/testbench": "^8.21",
"nunomaduro/collision": "^7.8",
"laravel/legacy-factories": "^1.4"
},
"autoload-dev": {
"psr-4": {
"Workbench\\App\\": "workbench/app/",
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
}
},
"scripts": {
"post-autoload-dump": [
"@clear",
"@prepare"
],
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"build": "@php vendor/bin/testbench workbench:build --ansi",
"serve": [
"Composer\\Config::disableProcessTimeout",
"@build",
"@php vendor/bin/testbench serve"
],
"lint": [
"@php vendor/bin/pint",
"@php vendor/bin/phpstan analyse"
],
"test": [
"@php vendor/bin/phpunit"
]
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
}
Loading
Loading