Skip to content

Commit

Permalink
Usage of composer & little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanCraft623 committed Nov 13, 2023
1 parent 15df268 commit 2502a73
Show file tree
Hide file tree
Showing 6 changed files with 1,461 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/phpstan.yml
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.vscode/*
/.idea/*

/composer.phar
/vendor/*

/.php-cs-fixer.cache
38 changes: 38 additions & 0 deletions composer.json
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/"
}
}
}
Loading

0 comments on commit 2502a73

Please sign in to comment.