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

chore: enable phpstan #45

Merged
merged 3 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: FoF reCAPTCHA PHP

on: [workflow_dispatch, push, pull_request]

jobs:
run:
uses: flarum/framework/.github/workflows/REUSABLE_backend.yml@main
with:
enable_backend_testing: false
enable_phpstan: true

backend_directory: .
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Javascript
name: FoF reCAPTCHA JS

on: [workflow_dispatch, push, pull_request]

Expand All @@ -8,11 +8,12 @@ jobs:
with:
enable_bundlewatch: false
enable_prettier: true
enable_typescript: false
enable_typescript: true

frontend_directory: ./js
backend_directory: .
js_package_manager: npm
main_git_branch: master

secrets:
bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
129 changes: 72 additions & 57 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,76 @@
{
"name": "fof/recaptcha",
"description": "Increase your forum's security with Google reCAPTCHA",
"keywords": [
"flarum"
],
"type": "flarum-extension",
"license": "MIT",
"support": {
"issues": "https://github.com/FriendsOfFlarum/recaptcha/issues",
"source": "https://github.com/FriendsOfFlarum/recaptcha",
"forum": "https://discuss.flarum.org/d/18399"
},
"homepage": "https://friendsofflarum.org/",
"funding": [
{
"type": "website",
"url": "https://opencollective.com/fof/donate"
}
],
"require": {
"flarum/core": "^1.6.0",
"google/recaptcha": "^1.2"
},
"authors": [
{
"name": "Sajjad Hashemian",
"email": "[email protected]"
"name": "fof/recaptcha",
"description": "Increase your forum's security with Google reCAPTCHA",
"keywords": [
"flarum"
],
"type": "flarum-extension",
"license": "MIT",
"support": {
"issues": "https://github.com/FriendsOfFlarum/recaptcha/issues",
"source": "https://github.com/FriendsOfFlarum/recaptcha",
"forum": "https://discuss.flarum.org/d/18399"
},
{
"name": "David Sevilla Martín",
"email": "[email protected]",
"role": "Developer"
}
],
"replace": {
"sijad/flarum-ext-recaptcha": "*"
},
"autoload": {
"psr-4": {
"FoF\\ReCaptcha\\": "src/"
}
},
"extra": {
"flarum-extension": {
"title": "FoF reCAPTCHA",
"category": "feature",
"icon": {
"name": "fas fa-robot",
"backgroundColor": "#e74c3c",
"color": "#fff"
},
"optional-dependencies": [
"fof/oauth"
]
"homepage": "https://friendsofflarum.org/",
"funding": [
{
"type": "website",
"url": "https://opencollective.com/fof/donate"
}
],
"require": {
"flarum/core": "^1.6.0",
"google/recaptcha": "^1.2"
},
"authors": [
{
"name": "Sajjad Hashemian",
"email": "[email protected]"
},
{
"name": "David Sevilla Martín",
"email": "[email protected]",
"role": "Developer"
}
],
"replace": {
"sijad/flarum-ext-recaptcha": "*"
},
"autoload": {
"psr-4": {
"FoF\\ReCaptcha\\": "src/"
}
},
"extra": {
"flarum-extension": {
"title": "FoF reCAPTCHA",
"category": "feature",
"icon": {
"name": "fas fa-robot",
"backgroundColor": "#e74c3c",
"color": "#fff"
},
"optional-dependencies": [
"fof/oauth"
]
},
"flagrow": {
"discuss": "https://discuss.flarum.org/d/18399"
},
"flarum-cli": {
"modules": {
"githubActions": true
}
}
},
"require-dev": {
"flarum/phpstan": "*"
},
"scripts": {
"analyse:phpstan": "phpstan analyse",
"clear-cache:phpstan": "phpstan clear-result-cache"
},
"flagrow": {
"discuss": "https://discuss.flarum.org/d/18399"
"scripts-descriptions": {
"analyse:phpstan": "Run static analysis"
}
}
}
}
Loading
Loading