-
Notifications
You must be signed in to change notification settings - Fork 2
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
15df268
commit 2502a73
Showing
6 changed files
with
1,461 additions
and
5 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,32 @@ | ||
name: PHPStan CI | ||
|
||
on: push | ||
|
||
jobs: | ||
phpstan: | ||
name: PHPStan Analysis | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
|
||
steps: | ||
- name: Startup | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download PHP Release | ||
uses: dsaltares/fetch-gh-release-asset@1.1.0 | ||
with: | ||
file: PHP-Linux-x86_64-PM5.tar.gz | ||
repo: pmmp/PHP-Binaries | ||
version: "tags/php-8.2-latest" | ||
|
||
- name: Unpack PHP Release | ||
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz | ||
|
||
- name: Download Composer | ||
run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar" | ||
|
||
- name: Install Composer dependencies | ||
run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction | ||
|
||
- name: Run PHPStan | ||
run: ./bin/php7/bin/php vendor/bin/phpstan.phar analyze --no-progress |
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,7 @@ | ||
/.vscode/* | ||
/.idea/* | ||
|
||
/composer.phar | ||
/vendor/* | ||
|
||
/.php-cs-fixer.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "ivancraft623/fakeblocks", | ||
"description": "Create and manage fakeblocks for yor PocketMine-MP server", | ||
"type": "project", | ||
"license": "Apache-2.0", | ||
"require-dev": { | ||
"php": "^8.0", | ||
"pocketmine/pocketmine-mp": "^5.3.0", | ||
"phpstan/phpstan": "1.10.25" | ||
}, | ||
"require": { | ||
"muqsit/simple-packet-handler": "dev-pm5" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "vcs", | ||
"url": "https://github.com/Muqsit/SimplePacketHandler.git" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"extra": { | ||
"virion":{ | ||
"spec": "3.0", | ||
"namespace-root": "ivancraft623\\fakeblocks" | ||
} | ||
}, | ||
"config": { | ||
"platform": { | ||
"php": "8.1" | ||
}, | ||
"sort-packages": true | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"": "src/" | ||
} | ||
} | ||
} |
Oops, something went wrong.