-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tests, PHPStan and associated fixes (#73)
* chore: add tests * Apply fixes from StyleCI * comment troublesome test for a moment * current tests passing * try php8 tests only * php 7.x compat * Apply fixes from StyleCI * also test reaction is saved in the db * without permission tests * Apply fixes from StyleCI * add phpstan, address most of the issues * Apply fixes from StyleCI * no stan errors now? * add crud tests, minor fixes * Apply fixes from StyleCI * remove typing directly * don't resolve in the constructor * Apply fixes from StyleCI * test disabled reactions * let composer decide on flarum/phpstan ver * drop php 7.3 support * list reactions test * Apply fixes from StyleCI * post attribute test * Apply fixes from StyleCI * list post reactions test * Apply fixes from StyleCI * npm audit fix * fix: show post reactions controller not respecting permission * allow guests to have view post reaction permission * Apply fixes from StyleCI * initial flarum/likes integration test * another couple of likes tests --------- Co-authored-by: StyleCI Bot <[email protected]>
- Loading branch information
1 parent
ef22c73
commit 156ba9e
Showing
40 changed files
with
1,740 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: FoF Reactions PHP | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
jobs: | ||
run: | ||
uses: flarum/framework/.github/workflows/REUSABLE_backend.yml@main | ||
with: | ||
enable_backend_testing: true | ||
enable_phpstan: true | ||
backend_directory: . | ||
php_versions: '["7.4", "8.0", "8.1", "8.2"]' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: FoF Reactions JS | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
jobs: | ||
run: | ||
uses: flarum/framework/.github/workflows/REUSABLE_frontend.yml@main | ||
with: | ||
enable_bundlewatch: false | ||
enable_prettier: true | ||
enable_typescript: true | ||
|
||
frontend_directory: ./js | ||
backend_directory: . | ||
js_package_manager: npm | ||
main_git_branch: master | ||
|
||
secrets: | ||
bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ bower_components | |
.floo* | ||
js/dist | ||
composer.lock | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.