Skip to content

Commit

Permalink
Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Mar 27, 2024
1 parent 46790fb commit 1cec385
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 103 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,22 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v3
- name: Startup
uses: actions/checkout@v4
- name: Download PHP Release
uses: dsaltares/fetch-gh-release-asset@0.06
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
file: Linux.zip
file: PHP-Linux-x86_64-PM5.tar.gz
repo: NetherGamesMC/php-build-scripts
version: "tags/php-8.3-latest"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack PHP Release
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz
- name: Checkout PharBuilder
uses: actions/checkout@v3
with:
repository: NetherGamesMC/PharBuilder
token: ${{ secrets.ng_token }}
path: PharBuilder
ref: pm5
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: Add Composer GitHub access token
run: ./bin/php7/bin/php composer.phar config --global github-oauth.github.com ${{ secrets.ng_token }}
- name: Install Composer dependencies
run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction
run: COMPOSER_ROOT_VERSION=dev-master ./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
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@
"php": "^8.0"
},
"require-dev": {
"phpstan/phpstan": "1.2.0"
"phpstan/phpstan": "1.2.0",
"nethergamesmc/pocketmine-mp": "dev-stable"
},
"repositories": [
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/PocketMine-MP.git" }
],
"autoload": {
"psr-4": {
"": ["src"]
}
},
"minimum-stability": "dev"
}
85 changes: 0 additions & 85 deletions composer.lock

This file was deleted.

6 changes: 1 addition & 5 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ parameters:
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
paths:
- src
bootstrapFiles:
- phar://PharBuilder/PocketMine-MP.phar/vendor/autoload.php
scanDirectories:
- phar://PharBuilder/PocketMine-MP.phar
- src

0 comments on commit 1cec385

Please sign in to comment.