Skip to content

Commit

Permalink
Merge pull request #42 from SOF3/composer
Browse files Browse the repository at this point in the history
chore: switch to virion v3
  • Loading branch information
supercrafter333 authored Sep 20, 2023
2 parents 97ae018 + b748569 commit 66ad270
Show file tree
Hide file tree
Showing 6 changed files with 3,422 additions and 14 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build phar
on:
push:
branches: [api/pm5]
jobs:
pharynx:
name: build phar
permissions:
contents: write
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- run: composer install --ignore-platform-reqs
- uses: SOF3/pharynx@v0.2
id: pharynx
- uses: actions/upload-artifact@v3
with:
name: plugin.phar
path: ${{steps.pharynx.outputs.output-phar}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor
14 changes: 0 additions & 14 deletions .poggit.yml

This file was deleted.

27 changes: 27 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "supercrafter333/betterban",
"license": "Apache-2.0",
"type": "pocketmine-plugin",
"scripts": {
"analyze": "vendor/bin/phpstan",
"build": "php -dphar.readonly=0 vendor/bin/pharynx -i=. -c -p=BetterBan.phar"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/SOF3/DiscordWebhooksX"
}
],
"require": {
"pocketmine/pocketmine-mp": "^5.0.0",
"dktapps/pmforms": "dev-master",
"supercrafter333/discordwebhooksx": "dev-composer"
},
"require-dev": {
"sof3/pharynx": "^0.3.0",
"phpstan/phpstan": "^1.2"
},
"autoload": {
"classmap": ["src"]
}
}
Loading

0 comments on commit 66ad270

Please sign in to comment.