-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
521f8f5
commit 3e932ef
Showing
28 changed files
with
122 additions
and
130 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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: composer | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 10 | ||
interval: monthly |
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 |
---|---|---|
|
@@ -6,19 +6,37 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
check: | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
name: Check code quality | ||
runs-on: ubuntu-20.04 | ||
build: | ||
name: PHPStan analysis | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: | ||
- "8.1" | ||
- "8.2" | ||
- "8.3" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install PHP | ||
run: echo "PHP_BINARY=$(sudo ./scripts/ci/download_php.sh | tail -1)" >> $GITHUB_ENV | ||
- name: Setup PHP | ||
uses: pmmp/[email protected] | ||
with: | ||
php-version: ${{ matrix.php }} | ||
install-path: "./bin" | ||
pm-version-major: 5 | ||
|
||
- name: PHPStan analysis | ||
run: | | ||
wget https://getcomposer.org/download/latest-stable/composer.phar | ||
$PHP_BINARY composer.phar install | ||
$PHP_BINARY vendor/bin/phpstan.phar analyze | ||
- name: Restore Composer package cache | ||
id: composer-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: "~/.cache/composer" | ||
key: "php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}" | ||
restore-keys: "php-${{ matrix.php }}-composer-" | ||
|
||
- name: Install PHPStan Composer dependencies | ||
run: composer install --prefer-dist --no-interaction | ||
|
||
- name: Run PHPStan | ||
run: vendor/bin/phpstan analyze |
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 |
---|---|---|
|
@@ -216,5 +216,5 @@ pip-log.txt | |
#Mr Developer | ||
.mr.developer.cfg | ||
|
||
/vendor/ | ||
/composer.lock | ||
vendor/ | ||
composer.lock |
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Frago9876543210/forms | ||
build-by-default: true | ||
branches: | ||
- master | ||
- master | ||
projects: | ||
forms: | ||
path: "" | ||
lint: false | ||
libforms: | ||
path: "" | ||
type: library | ||
model: virion | ||
lint: false | ||
... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
{ | ||
"name": "frago9876543210/forms", | ||
"require": { | ||
"phpstan/phpstan": "0.12.99", | ||
"pocketmine/pocketmine-mp": "dev-master", | ||
"phpstan/phpstan-strict-rules": "0.12.11", | ||
"phpstan/extension-installer": "1.1.0" | ||
"require-dev": { | ||
"phpstan/phpstan": "^1.10", | ||
"pocketmine/pocketmine-mp": "^5.14", | ||
"phpstan/phpstan-strict-rules": "^1.0", | ||
"phpstan/extension-installer": "^1.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"forms\\": "src/" | ||
"": "src/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable" : true, | ||
"require-dev": { | ||
"jetbrains/phpstorm-attributes": "^1.0" | ||
"config": { | ||
"allow-plugins": { | ||
"phpstan/extension-installer": true | ||
} | ||
}, | ||
"extra":{ | ||
"virion": { | ||
"spec": "3.0", | ||
"namespace-root": "forms" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: forms | ||
main: forms\bootstrap\Main | ||
src-namespace-prefix: forms | ||
version: 1.0.0 | ||
api: 4.0.0 | ||
api: 5.0.0 |
This file was deleted.
Oops, something went wrong.
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
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
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.